more fixes

This commit is contained in:
Fr4nz D13trich 2025-10-10 20:29:07 +02:00
parent cd0632281f
commit 01f072742f
2 changed files with 47 additions and 5 deletions

View file

@ -19,7 +19,7 @@ fi
### DEPENDENCIES
if command -v "$pkgs_check" >/dev/null 2>&1; then
if command -v "$pkgs_check" >/dev/null 2>&1; then ### create a FOR loop for pkg check?!
echo -e " ${GRN}Dependency check passed...${CRS}\n"
else
@ -77,7 +77,8 @@ while true; do
read -p " Enter new hostname --> " new_hostname
sudo sed -i.backup "s/$HOSTNAME/$new_hostname/g" /etc/hosts
sudo sed -i.backup "s/$HOSTNAME/$new_hostname/g" /etc/hostname
sudo systemctl reload NetworkManager
sudo systemctl restart NetworkManager
hostname -F /etc/hostname
echo -e "\n ${GRN}Host name changed to ${LCY}$(hostname)${CRS}"
break
else