]> eyrie.org Git - kerberos/krb5-strength.git/commitdiff
Check before removing /var/lib/heimdal-history debian/3.0-1
authorRuss Allbery <eagle@eyrie.org>
Wed, 26 Mar 2014 08:15:14 +0000 (01:15 -0700)
committerRuss Allbery <eagle@eyrie.org>
Wed, 26 Mar 2014 08:15:14 +0000 (01:15 -0700)
debian/postrm

index b6cf35322444e2374459ad371d738b5050b818e2..d5812bfac5699f64e59d4287ec9640ac6c6863b0 100755 (executable)
@@ -13,7 +13,9 @@ fi
 
 # Remove the directory for the password history database on remove if empty.
 if [ "$1" = purge ] || [ "$1" = remove ] ; then
-    rmdir --ignore-fail-on-non-empty /var/lib/heimdal-history
+    if [ -d /var/lib/heimdal-history ] ; then
+        rmdir --ignore-fail-on-non-empty /var/lib/heimdal-history
+    fi
 fi
 
 #DEBHELPER#