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