hostname fix

This commit is contained in:
Yuriy 2024-07-06 17:17:35 -04:00
parent 5809069e11
commit c8a93c7f11

View File

@ -166,16 +166,13 @@ fi
if [[ $index -eq 14 ]] && [[ $i == *"TRUE"* ]]; then if [[ $index -eq 14 ]] && [[ $i == *"TRUE"* ]]; then
echo "Changing Hostname" echo "Changing Hostname"
echo "Please input new Hostname" echo "Please input new Hostname"
read hostname read newhostname && hostnamectl set-hostname $newhostname
hostnamectl set-hostname $hostname
fi fi
if [[ $index -eq 15 ]] && [[ $i == *"TRUE"* ]]; then if [[ $index -eq 15 ]] && [[ $i == *"TRUE"* ]]; then
echo "Changing sudo timeout" echo "Changing sudo timeout"
echo "Paste the following into the editor:" echo "Paste the following into the editor:"
konsole --hold -e echo "Defaults env_reset,timestamp_timeout=30" ; sudo visudo konsole --hold -e echo "Defaults env_reset,timestamp_timeout=30" ; sudo visudo
# echo "Defaults env_reset,timestamp_timeout=30"
# sudo visudo
fi fi