From c8a93c7f11f220778ef6fb4a0f554239671dee99 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Sat, 6 Jul 2024 17:17:35 -0400 Subject: [PATCH] hostname fix --- Linux_Toolbox.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Linux_Toolbox.sh b/Linux_Toolbox.sh index 33d6390..7a856ab 100755 --- a/Linux_Toolbox.sh +++ b/Linux_Toolbox.sh @@ -166,16 +166,13 @@ fi if [[ $index -eq 14 ]] && [[ $i == *"TRUE"* ]]; then echo "Changing Hostname" echo "Please input new Hostname" - read hostname - hostnamectl set-hostname $hostname + read newhostname && hostnamectl set-hostname $newhostname fi if [[ $index -eq 15 ]] && [[ $i == *"TRUE"* ]]; then echo "Changing sudo timeout" echo "Paste the following into the editor:" konsole --hold -e echo "Defaults env_reset,timestamp_timeout=30" ; sudo visudo - # echo "Defaults env_reset,timestamp_timeout=30" - # sudo visudo fi