From d870e2045d0769626da1c44cb0d82c6e1af294f2 Mon Sep 17 00:00:00 2001 From: don Date: Thu, 21 Jun 2012 19:15:18 +0000 Subject: [PATCH] only remove home directory if it exists --- debian/spamass-milter.postrm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/spamass-milter.postrm b/debian/spamass-milter.postrm index 153356a..959529c 100644 --- a/debian/spamass-milter.postrm +++ b/debian/spamass-milter.postrm @@ -5,7 +5,9 @@ set -e case "$1" in purge) # remove /var/lib/spamass-milter if it exists - rmdir --ignore-fail-on-non-empty /var/lib/spamass-milter + if [ -e /var/lib/spamass-milter ]; then + rmdir --ignore-fail-on-non-empty /var/lib/spamass-milter + fi; ;; *) # do nothing @@ -14,4 +16,4 @@ esac ###DEBHELPER### -exit 0; \ No newline at end of file +exit 0; -- 2.39.2