summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/openssh-known-hosts.postrm10
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/openssh-known-hosts.postrm b/debian/openssh-known-hosts.postrm
index b1e2c51..7345ec1 100644
--- a/debian/openssh-known-hosts.postrm
+++ b/debian/openssh-known-hosts.postrm
@@ -1,5 +1,5 @@
#!/bin/sh
-# postrm script for #PACKAGE#
+# postrm script for openssh-known-hosts
#
# see: dh_installdeb(1)
@@ -20,9 +20,11 @@ set -e
case "$1" in
- purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- find /var/cache/openssh-known-hosts/ -mindepth 1 -delete
- find /var/lib/openssh-known-hosts/ -mindepth 1 -delete
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+ purge)
+ rm -rf /var/cache/openssh-known-hosts/
+ rm -rf /var/lib/openssh-known-hosts/
;;
*)
echo "postrm called with unknown argument \`$1'" >&2