Skip to content

Commit 61a12e4

Browse files
authored
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
1 parent 8bfe11b commit 61a12e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/vst-install-ubuntu.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,9 @@ if [ "$spamd" = 'yes' ]; then
10811081
sed -i "s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
10821082
service spamassassin start
10831083
check_result $? "spamassassin start failed"
1084+
if [[ $(systemctl list-unit-files | grep spamassassin) =~ "disabled" ]]; then
1085+
systemctl enable spamassassin
1086+
fi
10841087
fi
10851088

10861089

0 commit comments

Comments
 (0)