Update unifi-os-vm.sh

This commit is contained in:
CanbiZ 2025-08-01 15:14:55 +02:00
parent 8e368efe29
commit 821650ea3a

View File

@ -110,7 +110,7 @@ function cleanup() {
TEMP_DIR=$(mktemp -d)
pushd $TEMP_DIR >/dev/null
if whiptail --backtitle "Proxmox VE Helper Scripts" --title "Debian 12 VM" --yesno "This will create a New Debian 12 VM. Proceed?" 10 58; then
if whiptail --backtitle "Proxmox VE Helper Scripts" --title "Unifi OS VM" --yesno "This will create a New Unifi OS VM. Proceed?" 10 58; then
:
else
header_info && echo -e "${CROSS}${RD}User exited script${CL}\n" && exit
@ -233,7 +233,7 @@ function default_settings() {
echo -e "${DEFAULT}${BOLD}${DGN}Interface MTU Size: ${BGN}Default${CL}"
echo -e "${CLOUD}${BOLD}${DGN}Configure Cloud-init: ${BGN}no${CL}"
echo -e "${GATEWAY}${BOLD}${DGN}Start VM when completed: ${BGN}yes${CL}"
echo -e "${CREATING}${BOLD}${DGN}Creating a Debian 12 VM using the above default settings${CL}"
echo -e "${CREATING}${BOLD}${DGN}Creating a Unifi OS VM using the above default settings${CL}"
}
function advanced_settings() {
@ -409,8 +409,8 @@ function advanced_settings() {
START_VM="no"
fi
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create a Debian 12 VM?" --no-button Do-Over 10 58); then
echo -e "${CREATING}${BOLD}${DGN}Creating a Debian 12 VM using the above advanced settings${CL}"
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create a Unifi OS VM?" --no-button Do-Over 10 58); then
echo -e "${CREATING}${BOLD}${DGN}Creating a Unifi OS VM using the above advanced settings${CL}"
else
header_info
echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings${CL}"
@ -579,9 +579,9 @@ qm set $VMID --cicustom "user=local:snippets/unifios-server-${VMID}-user-data.ya
msg_ok "Created a Debian 12 Cloud-Init VM with UniFi OS Server auto-install"
if [ "$START_VM" == "yes" ]; then
msg_info "Starting Debian 12 VM"
msg_info "Starting Unifi OS VM"
qm start $VMID
msg_ok "Started Debian 12 VM"
msg_ok "Started Unifi OS VM"
fi
msg_ok "Completed Successfully!\n"