From: Valentin Vidic Date: Tue, 8 Mar 2011 13:17:51 +0000 (+0100) Subject: Remove GPG home only on purge. X-Git-Tag: debian/20110308~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=23cf33e754229c5e245c3ad19cefb5531b2b049b;p=bacula-cn.git Remove GPG home only on purge. --- diff --git a/debian/postrm b/debian/postrm index ce4e5b6..7e64384 100644 --- a/debian/postrm +++ b/debian/postrm @@ -24,7 +24,9 @@ clean_gpg() { case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - clean_gpg + if [ "$1" = "purge" ]; then + clean_gpg + fi ;; *)