From d3184fdf56024a494774c57b113400ccb915b234 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Mon, 10 Mar 2014 20:52:01 +0100 Subject: postrm: only act on purge, don't fail when empty --- debian/openssh-known-hosts.postrm | 10 ++++++---- 1 file 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 -- cgit v1.2.3