Преглед изворни кода

Merge pull request #286 from andrewrunxiyu/master

Make it work with Debian 12: spamassassin -> spamd
pull/295/head
Luke Smith пре 1 година
committed by GitHub
родитељ
комит
a46fd7f9d2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 17 додато и 3 уклоњено
  1. +17
    -3
      emailwiz.sh

+ 17
- 3
emailwiz.sh Прегледај датотеку

@@ -323,9 +323,23 @@ enabled = true
enabled = true" > /etc/fail2ban/jail.d/emailwiz.local

# Enable SpamAssassin update cronjob.
sed -i "s|^CRON=0|CRON=1|" /etc/default/spamassassin

for x in spamassassin opendkim dovecot postfix fail2ban; do
if [ -f /etc/default/spamassassin ]
then
sed -i "s|^CRON=0|CRON=1|" /etc/default/spamassassin
printf "Restarting spamassassin..."
service spamassassin restart && printf " ...done\\n"
systemctl enable spamassassin
elif [ -f /etc/default/spamd ]
then
sed -i "s|^CRON=0|CRON=1|" /etc/default/spamd
printf "Restarting spamd..."
service spamd restart && printf " ...done\\n"
systemctl enable spamd
else
printf "!!! Neither /etc/default/spamassassin or /etc/default/spamd exists, this is unexpected and needs to be investigated"
fi

for x in opendkim dovecot postfix fail2ban; do
printf "Restarting %s..." "$x"
service "$x" restart && printf " ...done\\n"
systemctl enable "$x"


Loading…
Откажи
Сачувај