debian packaging: removing unnecessary error masking in {pre,post}rm
[monkeysphere.git] / packaging / debian / monkeysphere.prerm
index 433a0aa123b7345b87bbd14a2d719e3e462c3e54..00523a11044a63a45acde2fcd820b74ed4afeee3 100755 (executable)
@@ -9,6 +9,8 @@ VARLIB="/var/lib/monkeysphere"
 
 rm -f "$VARLIB"/gnupg-host/gpg.conf
 rm -f "$VARLIB"/gnupg-authentication/gpg.conf
+rmdir --ignore-fail-on-non-empty "$VARLIB"/gnupg-host
+rmdir --ignore-fail-on-non-empty "$VARLIB"/gnupg-authentication
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.