From 5b9f802e6da43056e43568b4ee4ae94d7cb1e93d Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Wed, 18 Sep 2019 15:01:01 +0200 Subject: [PATCH] Update 'installer.sh' --- installer.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/installer.sh b/installer.sh index 26d27e6..cd14818 100644 --- a/installer.sh +++ b/installer.sh @@ -24,7 +24,7 @@ PKGA="add-apt-repository" PKGI="${PKGM} install -y" if [ $IMODE = n ]; then -if (whiptail --title "Ubuntu 18.04 Mail Server" --yesno "Do you want to install a mail server?" 8 78) +if (whiptail --title "Ubuntu 18.04 Mail Server" --yesno " Do you want to install a mail server?" 8 78) then echo "" >/dev/null else @@ -34,8 +34,8 @@ if (whiptail --title "Ubuntu 18.04 Mail Server" --yesno "Do you want to install fi echo "" >/dev/null #password=$(whiptail --nocancel --passwordbox "Please enter your password (should contain at least 2 digits and 6 characters)" 8 82 --title "Config" 3>&1 1>&2 2>&3) -#domain=$(whiptail --nocancel --inputbox "Enter the Domain without www or mail." 8 41 --title "Config" 3>&1 1>&2 2>&3) -#email=$(whiptail --nocancel --inputbox "Enter the Administrator E-mail" 8 34 --title "Config" 3>&1 1>&2 2>&3) +#domain=$(whiptail --nocancel --inputbox " Enter the Domain without www or mail." 8 82 --title "Config" 3>&1 1>&2 2>&3) +##email=$(whiptail --nocancel --inputbox " Enter the Administrator E-mail" 8 82 --title "Config" 3>&1 1>&2 2>&3) elif [ $IMODE = l ]; then echo "" >/dev/null #echo "Ubuntu 18.04 Mailserver installation script." @@ -567,6 +567,11 @@ systemctl restart nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon c ##-------------------------------------------## systemctl start amavisd-snmp-subagent amavis-mc +##-----------------------------------## +# 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 + ##------------------## # Final Update # ##------------------##