mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Ubuntu fix when spamassassin isn't in startup list
Patch is ported from Debian installer (old and tested). Fix for https://bugs.vestacp.com/issues/461
This commit is contained in:
parent
8bfe11b86d
commit
61a12e4cd9
1 changed files with 3 additions and 0 deletions
|
@ -1081,6 +1081,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