]> eyrie.org Git - kerberos/krb5-strength.git/blobdiff - debian/postrm
Check before removing /var/lib/heimdal-history
[kerberos/krb5-strength.git] / 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#