From d9557172b4eebc74f3dc7fe241e9f05b4e3a8039 Mon Sep 17 00:00:00 2001 From: bprieshof Date: Fri, 12 Apr 2019 09:58:08 +0200 Subject: [PATCH] Update 'installer.sh' --- installer.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/installer.sh b/installer.sh index a8455c8..59e4599 100644 --- a/installer.sh +++ b/installer.sh @@ -16,6 +16,17 @@ echo "Ubuntu 18.04 installatie script." echo "Domein zonder www:" read domain +while true; do + read -p "bestaat www.${domain} in DNS -> yes/no?" yn + case $yn in + [Yy]* ) domainwww=1 + break;; + [Nn]* ) domainwww=0 + break;; + * ) echo "Kies yes of no.";; + esac +done + while true; do read -p "Hostname with ictmaatwerk-cs.nl -> yes/no?" yn case $yn in @@ -32,16 +43,6 @@ while true; do esac done -while true; do - read -p "bestaat www.${domain} in DNS -> yes/no?" yn - case $yn in - [Yy]* ) domainwww=1 - break;; - [Nn]* ) domainwww=0 - break;; - * ) echo "Kies yes of no.";; - esac -done echo "Algemeen wachtwoord:" read password echo "Administrator email:"