From 08621f8b323bd1132a29efd1dc28e3284ea358c8 Mon Sep 17 00:00:00 2001 From: kload Date: Sun, 1 Nov 2015 10:24:33 +0100 Subject: [PATCH] [fix] Remove spamassassin CRON as well --- data/hooks/conf_regen/22-email-legacy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data/hooks/conf_regen/22-email-legacy b/data/hooks/conf_regen/22-email-legacy index 59cf75b1c..7c7edf03d 100644 --- a/data/hooks/conf_regen/22-email-legacy +++ b/data/hooks/conf_regen/22-email-legacy @@ -19,6 +19,8 @@ if [[ "$1" == "True" ]]; then || echo "Spamassassin is already removed" \ && sudo systemctl disable spamassassin || true + sudo rm -f etc/cron.daily/spamassassin + sudo yunohost service remove amavis \ || echo "Amavis is already removed" \ && sudo systemctl disable amavis || true @@ -27,7 +29,7 @@ if [[ "$1" == "True" ]]; then || echo "Postgrey is already removed" \ && sudo systemctl disable postgrey || true - systemctl stop spamassassin - systemctl stop amavis - systemctl stop postgrey + sudo systemctl stop spamassassin + sudo systemctl stop amavis + sudo systemctl stop postgrey fi