From 2727540a166af6e9e94405ecc861e0c5a97254e1 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Sat, 15 Jun 2024 14:55:42 -0700 Subject: [PATCH] fix os detection if/else --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8e9f42a..f971401 100755 --- a/install.sh +++ b/install.sh @@ -100,7 +100,7 @@ chown debian-spamd:mail /etc/spamassassin/sql.cf if [ $os_codename = jammy ]; then sed -i 's|OPTIONS="--create-prefs --max-children 5 --helper-home-dir"|OPTIONS="-x -q -v -u debian-spamd -g mail -m 5"|g' /etc/default/spamassassin sed -i 's|CRON=0|CRON=1|g' /etc/default/spamassassin -elif [ $os_codename != bookworm ]; then +elif [ $os_codename = bookworm ]; then sed -i 's|OPTIONS="--create-prefs --max-children 5 --helper-home-dir"|OPTIONS="-x -q -v -u debian-spamd -g mail -m 5"|g' /etc/default/spamd systemctl enable spamassassin-maintenance.timer systemctl start spamassassin-maintenance.timer @@ -174,7 +174,7 @@ chown dovecot:mail /usr/local/libexec/vmail-quota-warning.sh if [ $os_codename = jammy ]; then systemctl enable spamassassin systemctl restart spamassassin -elif [ $os_codename != bookworm ]; then +elif [ $os_codename = bookworm ]; then systemctl enable spamd systemctl restart spamd else