test if systemd exists
This commit is contained in:
parent
b9b777cb77
commit
f220f20894
@ -37,7 +37,7 @@ install_spamassassin() {
|
|||||||
razor-admin -home=/etc/razor -discover
|
razor-admin -home=/etc/razor -discover
|
||||||
cp -fv spamd/sa-learn /etc/cron.daily/sa-learn
|
cp -fv spamd/sa-learn /etc/cron.daily/sa-learn
|
||||||
cp -fv spamd/spamassassin /etc/default/spamassassin
|
cp -fv spamd/spamassassin /etc/default/spamassassin
|
||||||
systemctl enable spamassassin
|
[[ -n $(which systemctl) ]] && systemctl enable spamassassin
|
||||||
service spamassassin restart
|
service spamassassin restart
|
||||||
install_restart
|
install_restart
|
||||||
}
|
}
|
||||||
@ -45,7 +45,7 @@ install_spamassassin() {
|
|||||||
install_clamav() {
|
install_clamav() {
|
||||||
aptitude -y install exim4-daemon-heavy clamav clamav-daemon
|
aptitude -y install exim4-daemon-heavy clamav clamav-daemon
|
||||||
adduser clamav Debian-exim
|
adduser clamav Debian-exim
|
||||||
systemctl enable clamav-daemon
|
[[ -n $(which systemctl) ]] && systemctl enable clamav-daemon
|
||||||
service clamav-daemon restart
|
service clamav-daemon restart
|
||||||
install_restart
|
install_restart
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user