From 71541e88f726bca5395346ce642ab7791ca43a1a Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Wed, 18 Sep 2019 14:16:38 +0200 Subject: [PATCH] Update 'installer.sh' --- installer.sh | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/installer.sh b/installer.sh index 43ae15f..26d27e6 100644 --- a/installer.sh +++ b/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 #