mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
Merge pull request #621 from MisterBlueBear/install_script_default_hostname
Install script accepts default hostname
This commit is contained in:
commit
bcf91ad7b7
1 changed files with 8 additions and 2 deletions
|
@ -424,9 +424,15 @@ until [[ $setupfqdn == "yes" ]] || [[ $setupfqdn == "no" ]]; do
|
|||
|
||||
case $setupfqdn in
|
||||
[yY] | [yY][Ee][Ss] )
|
||||
echo -n " Q. What is the FQDN of your server? ($(hostname --fqdn)): "
|
||||
read -r fqdn
|
||||
fqdn=$(hostname --fqdn)
|
||||
echo -n " Q. What is the FQDN of your server? ($fqdn): "
|
||||
read -r fqdn_from_user
|
||||
setupfqdn="yes"
|
||||
|
||||
if [ ! -z $fqdn_from_user ]; then
|
||||
fqdn=$fqdn_from_user
|
||||
fi
|
||||
|
||||
echo " Setting to $fqdn"
|
||||
echo ""
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue