mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Debian fix for spamassassin when it's not in startup list
Fix for https://bugs.vestacp.com/issues/346
This commit is contained in:
parent
2057b3ee95
commit
e1af40e232
1 changed files with 3 additions and 0 deletions
|
@ -1055,6 +1055,9 @@ if [ "$spamd" = 'yes' ]; then
|
|||
sed -i "s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
|
||||
service spamassassin start
|
||||
check_result $? "spamassassin start failed"
|
||||
if [[ $(systemctl list-unit-files | grep spamassassin) =~ "disabled" ]]; then
|
||||
systemctl enable spamassassin
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue