Skip to content

Commit

Permalink
Merge pull request #621 from MisterBlueBear/install_script_default_ho…
Browse files Browse the repository at this point in the history
…stname

Install script accepts default hostname
  • Loading branch information
catborise committed Nov 2, 2023
2 parents 2ff0abf + 2f24f77 commit bcf91ad
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions webvirtcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
;;
Expand Down

0 comments on commit bcf91ad

Please sign in to comment.