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