From c7310e6b6e0410b72fb3d97cd23f2d63e459b1fb Mon Sep 17 00:00:00 2001 From: kload Date: Sat, 31 Oct 2015 14:23:38 +0100 Subject: [PATCH] [fix] Typo in email-legacy hook --- data/hooks/conf_regen/22-email-legacy | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/data/hooks/conf_regen/22-email-legacy b/data/hooks/conf_regen/22-email-legacy index ba13e4b89..0b11ae10c 100644 --- a/data/hooks/conf_regen/22-email-legacy +++ b/data/hooks/conf_regen/22-email-legacy @@ -12,18 +12,14 @@ sudo yunohost service add memcached \ || echo "Memcached is already listed in services" # Remove previous email services -sudo yunohost service disable spamassassin \ +sudo yunohost service remove spamassassin \ || echo "Spamassassin is already removed" \ - && systemctl disable spamassassin || true + && sudo systemctl disable spamassassin || true -sudo yunohost service disable amavis \ +sudo yunohost service remove amavis \ || echo "Amavis is already removed" \ - && systemctl disable spamassassin || true + && sudo systemctl disable amavis || true -sudo yunohost service disable postgrey \ +sudo yunohost service remove postgrey \ || echo "Postgrey is already removed" \ - && systemctl disable postgrey || true - -sudo yunohost service disable postgrey \ - && sudo yunohost service remove amavis \ - || echo "Amavis is already removed" + && sudo systemctl disable postgrey || true