added sslenable question
This commit is contained in:
15
installer.sh
15
installer.sh
@@ -70,6 +70,11 @@ if (whiptail --title "Config" --yesno "Hostname with nxdi.nl" 11 82); then
|
|||||||
else
|
else
|
||||||
hostname=$(whiptail --nocancel --inputbox " Hostname " 11 82 --title "Config" 3>&1 1>&2 2>&3)
|
hostname=$(whiptail --nocancel --inputbox " Hostname " 11 82 --title "Config" 3>&1 1>&2 2>&3)
|
||||||
fi
|
fi
|
||||||
|
if (whiptail --title "Config" --yesno "Enable SSL on installation?" 11 82); then
|
||||||
|
sslenable=1
|
||||||
|
else
|
||||||
|
sslenable=0
|
||||||
|
fi
|
||||||
password=$(whiptail --nocancel --passwordbox "Please enter your password (should contain at least 2 digits and 6 characters)" 11 82 --title "Config" 3>&1 1>&2 2>&3)
|
password=$(whiptail --nocancel --passwordbox "Please enter your password (should contain at least 2 digits and 6 characters)" 11 82 --title "Config" 3>&1 1>&2 2>&3)
|
||||||
email=$(whiptail --nocancel --inputbox " Enter the administrator e-mail" 11 82 --title "Config" 3>&1 1>&2 2>&3)
|
email=$(whiptail --nocancel --inputbox " Enter the administrator e-mail" 11 82 --title "Config" 3>&1 1>&2 2>&3)
|
||||||
webserv=$(whiptail --title "Select Webserver" --radiolist "WebServer" 11 53 5 "Nginx:" "Will install NGINX Webserver." ON "Apache:" "Will install Apache Webserver." OFF 3>&1 1>&2 2>&3)
|
webserv=$(whiptail --title "Select Webserver" --radiolist "WebServer" 11 53 5 "Nginx:" "Will install NGINX Webserver." ON "Apache:" "Will install Apache Webserver." OFF 3>&1 1>&2 2>&3)
|
||||||
@@ -106,6 +111,16 @@ while true; do
|
|||||||
* )echo "Choose yes or no.";;
|
* )echo "Choose yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
while true; do
|
||||||
|
read -p "Enable SSL on installation? -> yes/no?" yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]* ) sslenable=1
|
||||||
|
break;;
|
||||||
|
[Nn]* ) sslenable=0
|
||||||
|
break;;
|
||||||
|
* ) echo "Choose yes of no.";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
echo "Please enter your password (should contain at least 2 digits and 6 characters:"
|
echo "Please enter your password (should contain at least 2 digits and 6 characters:"
|
||||||
read password
|
read password
|
||||||
echo "Administrator E-mail:"
|
echo "Administrator E-mail:"
|
||||||
|
|||||||
Reference in New Issue
Block a user