summaryrefslogtreecommitdiff
path: root/debian/acmetool.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/acmetool.postrm')
-rw-r--r--debian/acmetool.postrm6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/acmetool.postrm b/debian/acmetool.postrm
index d6f4120..3e65bbc 100644
--- a/debian/acmetool.postrm
+++ b/debian/acmetool.postrm
@@ -5,7 +5,7 @@ set -e
if [ "$1" = "purge" ] ; then
if [ -f "/etc/cron.d/acmetool" ]; then
- rm -f /etc/cron.d/acmetool
+ rm -f "/etc/cron.d/acmetool"
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d cron reload || true
else
@@ -13,6 +13,10 @@ if [ "$1" = "purge" ] ; then
fi
fi
+ if [ -f "/var/spool/cron/crontabs/acme" ]; then
+ rm -f "/var/spool/cron/crontabs/acme"
+ fi
+
if [ -d "/usr/lib/acme/hooks/" ]; then
for hook in /usr/lib/acme/hooks/*; do
grep -q '#!acmetool-managed!#' "$hook" && rm -f "$hook" || true