Update 'installer.sh'

This commit is contained in:
b.waal
2019-09-15 16:16:48 +02:00
parent 7cdb8aca6f
commit f59d2e3e31

View File

@@ -5,15 +5,46 @@
##----------##
# Menu #
##----------##
#echo "Menu"
sed -i -e 's/magenta/blue/g' /etc/newt/palette
PKGM="apt"
if [ "$1" != "-l" ]; then
echo "Normal mode"
PKGM="debconf-apt-progress -- apt"
IMODE=n
fi
if [ "$1" = "-l" ]; then
echo "Legacy mode";
PKGM="apt"
IMODE=l
fi
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)
then
else
exit
fi
elif [ $IMODE = l ]; then
echo "Ubuntu 18.04 Mailserver installatie script."
echo "Domein zonder www en mail.:"
read domain
echo "Algemeen wachtwoord:"
read password
echo "Administrator email:"
read email
fi
PKGA="add-apt-repository"
PKGI="${PKGM} install -y"
#echo "Ubuntu 18.04 Mailserver installatie script."
#echo "Domein zonder www en mail.:"
#read domain
#echo "Algemeen wachtwoord:"
#read password
#echo "Administrator email:"
#read email
##-----------------##
# Static-Vars #