diff --git a/installer.sh b/installer.sh index c3af29b..7b8f908 100644 --- a/installer.sh +++ b/installer.sh @@ -70,6 +70,11 @@ if (whiptail --title "Config" --yesno "Hostname with nxdi.nl" 11 82); then else hostname=$(whiptail --nocancel --inputbox " Hostname " 11 82 --title "Config" 3>&1 1>&2 2>&3) 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) 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) @@ -106,6 +111,16 @@ while true; do * )echo "Choose yes or no.";; esac 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:" read password echo "Administrator E-mail:"