Update 'installer.sh'
This commit is contained in:
47
installer.sh
47
installer.sh
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user