Update 'installer.sh'
This commit is contained in:
28
installer.sh
28
installer.sh
@@ -534,14 +534,38 @@ source /tmp/unattended.sh
|
||||
##-----------------------##
|
||||
TERM=ansi whiptail --title "Info" --infobox " Enabling Services" 8 52
|
||||
sleep 1
|
||||
systemctl enable nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin amavisd-snmp-subagent amavis-mc amavis-snmp-subagent > $OUTPUT 2>&1
|
||||
systemctl enable nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin > $OUTPUT 2>&1
|
||||
|
||||
##-------------------------------##
|
||||
# Disabling Services on boot #
|
||||
##-------------------------------##
|
||||
systemctl disable amavisd-snmp-subagent amavis-mc
|
||||
|
||||
##----------------------##
|
||||
# Stopping Services #
|
||||
##----------------------##
|
||||
systemctl stop amavisd-snmp-subagent amavis-mc
|
||||
|
||||
##-----------------------##
|
||||
# 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 amavisd-snmp-subagent amavis-mc amavis-snmp-subagent > $OUTPUT 2>&1
|
||||
systemctl restart nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin > $OUTPUT 2>&1
|
||||
|
||||
##---------------------------------##
|
||||
# Updating ClamAV Definitions #
|
||||
##---------------------------------##
|
||||
{
|
||||
for ((i = 0 ; i <= 100 ; i+=1)); do sleep 3.0
|
||||
echo $i
|
||||
done
|
||||
} | whiptail --gauge " Please wait while ClamAV is updating definitions..." 6 50 0
|
||||
|
||||
##-------------------------------------------##
|
||||
# Starting AntiVirus & AntiSpam Services #
|
||||
##-------------------------------------------##
|
||||
systemctl start amavisd-snmp-subagent amavis-mc
|
||||
|
||||
##------------------##
|
||||
# Final Update #
|
||||
|
||||
Reference in New Issue
Block a user