Update Scripts/change_hostname.sh

This commit is contained in:
2025-04-23 19:33:01 +00:00
parent 86faa63db1
commit ff8001d297

View File

@@ -7,7 +7,7 @@ old_host=$(hostname)
#make backups for hostname and hosts files #make backups for hostname and hosts files
cp /etc/hostname /etc/hostname.bk cp /etc/hostname /etc/hostname.bk
cd /etc/hosts /etc/hosts.bk cp /etc/hosts /etc/hosts.bk
#ask user for new host name and set it as value for new_host #ask user for new host name and set it as value for new_host
printf "%s\n" "Hostname must be between 1-63 characters long" printf "%s\n" "Hostname must be between 1-63 characters long"