diff options
author | Timo Weingärtner <timo@tiwe.de> | 2014-03-10 20:52:01 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2014-03-10 20:52:01 +0100 |
commit | d3184fdf56024a494774c57b113400ccb915b234 (patch) | |
tree | 215942b27633624a71ec93fcc086f9a9e0108cf8 /debian | |
parent | 2a0d0ea5ee600a2382d9b3cda0922c8baabb3c71 (diff) | |
download | openssh-known-hosts-d3184fdf56024a494774c57b113400ccb915b234.tar.gz |
postrm: only act on purge, don't fail when empty
Diffstat (limited to 'debian')
-rw-r--r-- | debian/openssh-known-hosts.postrm | 10 |
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 |