Update 'installer.sh'
This commit is contained in:
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user