Update 'installer.sh'
This commit is contained in:
12
installer.sh
12
installer.sh
@@ -22,11 +22,14 @@ PKGA="add-apt-repository"
|
|||||||
PKGI="${PKGM} install -y"
|
PKGI="${PKGM} install -y"
|
||||||
|
|
||||||
if [ $IMODE = n ]; then
|
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)
|
if (whiptail --title "Ubuntu 18.04 Mail Server" --yesno "Do you want to install a mail server?" 8 78)
|
||||||
then
|
then
|
||||||
echo "" >/dev/null
|
echo "" >/dev/null
|
||||||
else
|
else
|
||||||
whiptail --title "Credits" --msgbox "Made by: your local Wizard and God" 8 78
|
whiptail --title "Credits" --msgbox "Made by: your local Wizard and God" 8 78
|
||||||
|
clear
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
password=$(whiptail --nocancel --passwordbox "Please enter your password" 8 78 --title "Statics dialog" 3>&1 1>&2 2>&3)
|
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 #
|
# 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
|
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 #
|
# 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
|
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 #
|
# Final Update #
|
||||||
##------------------##
|
##------------------##
|
||||||
|
whiptail --title "Finalizing Update" --infobox "Busy like a bee" 8 45
|
||||||
|
sleep 2
|
||||||
$PKGM update
|
$PKGM update
|
||||||
$PKGM upgrade -y
|
$PKGM upgrade -y
|
||||||
$PKGM autoremove -y
|
$PKGM autoremove -y
|
||||||
@@ -517,4 +526,5 @@ $PKGM autoremove -y
|
|||||||
##----------------------##
|
##----------------------##
|
||||||
whiptail --title "Done installing!" --infobox "" 8 45
|
whiptail --title "Done installing!" --infobox "" 8 45
|
||||||
sleep 3
|
sleep 3
|
||||||
whiptail --title "Credits" --msgbox "Made by: your local Wizard and God" 8 78
|
whiptail --title "Credits" --msgbox "Made by: your local Wizard and God" 8 78
|
||||||
|
clear
|
||||||
Reference in New Issue
Block a user