1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 23:55:24 +00:00

Merge pull request #621 from MisterBlueBear/install_script_default_hostname

Install script accepts default hostname
This commit is contained in:
catborise 2023-11-02 11:01:48 +03:00 committed by GitHub
commit bcf91ad7b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -424,9 +424,15 @@ until [[ $setupfqdn == "yes" ]] || [[ $setupfqdn == "no" ]]; do
case $setupfqdn in case $setupfqdn in
[yY] | [yY][Ee][Ss] ) [yY] | [yY][Ee][Ss] )
echo -n " Q. What is the FQDN of your server? ($(hostname --fqdn)): " fqdn=$(hostname --fqdn)
read -r fqdn echo -n " Q. What is the FQDN of your server? ($fqdn): "
read -r fqdn_from_user
setupfqdn="yes" setupfqdn="yes"
if [ ! -z $fqdn_from_user ]; then
fqdn=$fqdn_from_user
fi
echo " Setting to $fqdn" echo " Setting to $fqdn"
echo "" echo ""
;; ;;