summaryrefslogtreecommitdiffstats
path: root/debian/progress-linux.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/progress-linux.postrm')
-rwxr-xr-xdebian/progress-linux.postrm5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/progress-linux.postrm b/debian/progress-linux.postrm
index 086b5ff..391291d 100755
--- a/debian/progress-linux.postrm
+++ b/debian/progress-linux.postrm
@@ -25,6 +25,11 @@ Remove_apt_keys ()
Remove_ssh_known_hosts ()
{
+ if [ ! -e /etc/ssh/ssh_known_hosts ]
+ then
+ return
+ fi
+
# ssh cert-authority
grep -v "^@cert-authority \*.${DOMAIN}" /etc/ssh/ssh_known_hosts > /etc/ssh/ssh_known_hosts.tmp