Merge pull request #1286 from juronja/debian-hostname-fix

hostname value for debian fix
This commit is contained in:
CanbiZ (MickLesk) 2026-01-14 18:34:10 +01:00 committed by GitHub
commit eeb93a3f61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -298,9 +298,9 @@ function advanced_settings() {
exit-script
fi
if VM_NAME=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Hostname" 8 58 unifi-os-server --title "HOSTNAME" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if VM_NAME=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Hostname" 8 58 debian --title "HOSTNAME" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if [ -z $VM_NAME ]; then
HN="unifi-os-server"
HN="debian"
echo -e "${HOSTNAME}${BOLD}${DGN}Hostname: ${BGN}$HN${CL}"
else
HN=$(echo ${VM_NAME,,} | tr -d ' ')