From 211ce8b0b881d605d7a7a82ea5fcaed25bee3948 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Wed, 18 Sep 2019 21:11:16 +0200 Subject: [PATCH] Update 'installer.sh' --- installer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer.sh b/installer.sh index 89246c4..1f86894 100644 --- a/installer.sh +++ b/installer.sh @@ -544,14 +544,14 @@ systemctl disable amavisd-snmp-subagent amavis-mc ##----------------------## # Stopping Services # ##----------------------## -systemctl stop amavisd-snmp-subagent amavis-mc +systemctl stop amavisd-snmp-subagent amavis-mc postfix dovecot ##-----------------------## # Starting Services # ##-----------------------## TERM=ansi whiptail --title "Info" --infobox " Restarting Services" 8 52 sleep 1 -systemctl restart nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin > $OUTPUT 2>&1 +systemctl restart nginx mysql postfix@- fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin > $OUTPUT 2>&1 ##---------------------------------## # Updating ClamAV Definitions # @@ -565,12 +565,12 @@ systemctl restart nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon c ##-------------------------------------------## # Starting AntiVirus & AntiSpam Services # ##-------------------------------------------## -systemctl start amavisd-snmp-subagent amavis-mc +systemctl start amavisd-snmp-subagent amavis-mc postfix dovecot ##-----------------------------------## # Letting Amavis wait for ClamAV # ##-----------------------------------## -echo "@reboot root systemctl stop amavisd-snmp-subagent amavis-mc && sleep 300 && systemctl start systemctl stop amavisd-snmp-subagent amavis-mc" >> /etc/crontab +echo "@reboot root systemctl stop amavisd-snmp-subagent amavis-mc postfix dovecot && sleep 300 && systemctl start amavisd-snmp-subagent amavis-mc postfix dovecot" >> /etc/crontab ##------------------## # Final Update #