Update & clean some stuff up

This commit is contained in:
2025-12-18 20:35:11 +00:00
parent 81eefc4f84
commit cba2ca3b1c
3 changed files with 18 additions and 6 deletions

21
install
View File

@@ -1,9 +1,20 @@
#!/usr/bin/env bash
source ~/.local/share/Panama/bin/ascii
# Set host name
read -p "What should the hostname be? " HOST_NAME
sudo hostnamectl set-hostname $HOST_NAME
echo -e "Current hostname is: $(hostname)"
read -p "Do you want to change the hostname? [y/N]: " confirm_change
if [[ "$confirm_change" =~ ^[Yy]$ ]]; then
read -p "Hostname: " HOST_NAME
read -p "Set hostname to '$HOST_NAME'? [y/N]: " confirm_hostname
if [[ "$confirm_hostname" =~ ^[Yy]$ ]]; then
sudo hostnamectl set-hostname "$HOST_NAME"
echo "Hostname set to: $(hostname)"
else
echo "Hostname not changed."
fi
else
echo "Not changing hostname."
exit
fi
# Run scripts
for script in ~/.local/share/Panama/setup/scripts/*; do source $script; done