From adcb55a6e0adb9546a921df8b2a5ae226d2de6cb Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 31 May 2024 21:59:27 -0700 Subject: [PATCH] hardcode hostname to localhost for desktop installs Signed-off-by: Tommy --- install.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 94fb7ae..1768347 100644 --- a/install.sh +++ b/install.sh @@ -94,12 +94,16 @@ user_password_prompt () { } hostname_prompt (){ - output 'Enter your hostname:' - read -r hostname + if [ "${install_mode}" = 'server' ]; then + output 'Enter your hostname:' + read -r hostname - if [ -z "${hostname}" ]; then - output 'You need to enter a hostname.' - hostname_prompt + if [ -z "${hostname}" ]; then + output 'You need to enter a hostname.' + hostname_prompt + fi + else + hostname='localhost' fi }