mirror of https://github.com/tteck/Proxmox.git
New Zigbee2MQTT Update Menu (#1217)
This commit is contained in:
parent
febcc52219
commit
cf388a0f7c
|
@ -52,15 +52,23 @@ function default_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 1 \
|
while true; do
|
||||||
"1" "Check for Zigbee2MQTT Update" ON \
|
CHOICE=$(whiptail --title "SUPPORT" --menu "Select option" 11 58 1 \
|
||||||
3>&1 1>&2 2>&3)
|
"1" "Check for Zigbee2MQTT Updates" 3>&2 2>&1 1>&3
|
||||||
|
)
|
||||||
header_info
|
exit_status=$?
|
||||||
if [ "$UPD" == "1" ]; then
|
if [ $exit_status == 1 ] ; then
|
||||||
apk update && apk upgrade
|
clear
|
||||||
exit;
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
header_info
|
||||||
|
case $CHOICE in
|
||||||
|
1 )
|
||||||
|
apk update && apk upgrade
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
|
Loading…
Reference in New Issue