Update 'installer.sh'
This commit is contained in:
10
installer.sh
10
installer.sh
@@ -22,11 +22,14 @@ PKGA="add-apt-repository"
|
||||
PKGI="${PKGM} install -y"
|
||||
|
||||
if [ $IMODE = n ]; then
|
||||
whiptail --title "Ubuntu 18.04 Mail Installer" --infobox "" 8 45
|
||||
sleep 3
|
||||
if (whiptail --title "Ubuntu 18.04 Mail Server" --yesno "Do you want to install a mail server?" 8 78)
|
||||
then
|
||||
echo "" >/dev/null
|
||||
else
|
||||
whiptail --title "Credits" --msgbox "Made by: your local Wizard and God" 8 78
|
||||
clear
|
||||
exit
|
||||
fi
|
||||
password=$(whiptail --nocancel --passwordbox "Please enter your password" 8 78 --title "Statics dialog" 3>&1 1>&2 2>&3)
|
||||
@@ -498,16 +501,22 @@ source /tmp/unattended.sh > /dev/null 2>&1
|
||||
##-----------------------##
|
||||
# Enabling Services #
|
||||
##-----------------------##
|
||||
whiptail --title "Enabling Services" --infobox "Busy like a bee" 8 45
|
||||
sleep 2
|
||||
systemctl enable nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin amavisd-snmp-subagent amavis-mc amavis-snmp-subagent > /dev/null 2>&1
|
||||
|
||||
##-----------------------##
|
||||
# Starting Services #
|
||||
##-----------------------##
|
||||
whiptail --title "Restarting Services" --infobox "Busy like a bee" 8 45
|
||||
sleep 2
|
||||
systemctl restart nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin amavisd-snmp-subagent amavis-mc amavis-snmp-subagent > /dev/null 2>&1
|
||||
|
||||
##------------------##
|
||||
# Final Update #
|
||||
##------------------##
|
||||
whiptail --title "Finalizing Update" --infobox "Busy like a bee" 8 45
|
||||
sleep 2
|
||||
$PKGM update
|
||||
$PKGM upgrade -y
|
||||
$PKGM autoremove -y
|
||||
@@ -518,3 +527,4 @@ $PKGM autoremove -y
|
||||
whiptail --title "Done installing!" --infobox "" 8 45
|
||||
sleep 3
|
||||
whiptail --title "Credits" --msgbox "Made by: your local Wizard and God" 8 78
|
||||
clear
|
||||
Reference in New Issue
Block a user