From 6fa49fa3d16a4ac3b1ea18dd4110dca6830e3aff Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 9 Feb 2026 09:24:06 +0100 Subject: [PATCH] Simplify Alpine update scripts to run upgrade Remove interactive whiptail menus, loops and newt dependency checks from ct/alpine-docker.sh, ct/alpine-zigbee2mqtt.sh, and ct/alpine.sh. Each update_script now simply calls header_info, runs $STD apk -U upgrade, displays a success message and exits, simplifying and automating the update flow. --- ct/alpine-docker.sh | 25 +++---------------------- ct/alpine-zigbee2mqtt.sh | 26 ++++---------------------- ct/alpine.sh | 14 +++----------- 3 files changed, 10 insertions(+), 55 deletions(-) diff --git a/ct/alpine-docker.sh b/ct/alpine-docker.sh index 698139f16..0d8b71420 100644 --- a/ct/alpine-docker.sh +++ b/ct/alpine-docker.sh @@ -20,28 +20,9 @@ color catch_errors function update_script() { - if ! apk -e info newt >/dev/null 2>&1; then - apk add -q newt - fi - while true; do - CHOICE=$( - whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --menu "Select option" 11 58 1 \ - "1" "Check for Docker Updates" 3>&2 2>&1 1>&3 - ) - exit_status=$? - if [ $exit_status == 1 ]; then - clear - exit-script - fi - header_info - case $CHOICE in - 1) - $STD apk -U upgrade - msg_ok "Updated successfully!" - exit - ;; - esac - done + header_info + $STD apk -U upgrade + msg_ok "Updated successfully!" exit 0 } diff --git a/ct/alpine-zigbee2mqtt.sh b/ct/alpine-zigbee2mqtt.sh index ab2c2ceea..03e7595c9 100644 --- a/ct/alpine-zigbee2mqtt.sh +++ b/ct/alpine-zigbee2mqtt.sh @@ -20,28 +20,10 @@ color catch_errors function update_script() { - if ! apk -e info newt >/dev/null 2>&1; then - apk add -q newt - fi - while true; do - CHOICE=$( - whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --menu "Select option" 11 58 1 \ - "1" "Check for Zigbee2MQTT Updates" 3>&2 2>&1 1>&3 - ) - exit_status=$? - if [ $exit_status == 1 ]; then - clear - exit-script - fi - header_info - case $CHOICE in - 1) - $STD apk -U upgrade - msg_ok "Updated successfully!" - exit - ;; - esac - done + header_info + $STD apk -U upgrade + msg_ok "Updated successfully!" + exit 0 } start diff --git a/ct/alpine.sh b/ct/alpine.sh index 5aa8111f5..56ee2c20a 100644 --- a/ct/alpine.sh +++ b/ct/alpine.sh @@ -20,18 +20,10 @@ color catch_errors function update_script() { - UPD=$( - whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 1 \ - "1" "Check for Alpine Updates" ON \ - 3>&1 1>&2 2>&3 - ) - header_info - if [ "$UPD" == "1" ]; then - $STD apk -U upgrade - msg_ok "Updated successfully!" - exit 0 - fi + $STD apk -U upgrade + msg_ok "Updated successfully!" + exit 0 } start