Update 'installer.sh'

This commit is contained in:
bprieshof
2019-04-10 13:13:32 +02:00
parent 2bc9c177d8
commit a0b1104e26

View File

@@ -15,9 +15,23 @@
echo "Ubuntu 18.04 installatie script."
echo "Domein zonder www:"
read domain
while true; do
read -p "Hostname with ictmaatwerk-cs.nl -> yes/no?" yn
case $yn in
[Nn]* )
echo 'Enter full hostname:'
read hostname
break;;
[Yy]* )
echo 'Hostname (eg: VCH001) zonder ".ictmaatwerk-cs.nl":'
read hostname
hostname=$hostname".ictmaatwerk-cs.nl"
break;;
* )echo "Choose yes or no.";;
esac
done
while true; do
read -p "bestaat www.${domain} in DNS -> yes/no?" yn
case $yn in