Skip to content

Commit

Permalink
Install script accepts default hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterBlueBear committed Nov 2, 2023
1 parent 2ff0abf commit 2f24f77
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 2f24f77

Please sign in to comment.