mirror of https://github.com/tteck/Proxmox.git
parent
196c604ec0
commit
670ead2ae1
|
@ -6,8 +6,8 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/alpin
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||||
|
|
||||||
function header_info {
|
function header_info {
|
||||||
clear
|
clear
|
||||||
cat <<"EOF"
|
cat <<"EOF"
|
||||||
_____ _ __ ___ __ _______ ____________
|
_____ _ __ ___ __ _______ ____________
|
||||||
/__ / (_)___ _/ /_ ___ ___ |__ \ / |/ / __ \/_ __/_ __/
|
/__ / (_)___ _/ /_ ___ ___ |__ \ / |/ / __ \/_ __/_ __/
|
||||||
/ / / / __ / __ \/ _ \/ _ \__/ // /|_/ / / / / / / / /
|
/ / / / __ / __ \/ _ \/ _ \__/ // /|_/ / / / / / / / /
|
||||||
|
@ -52,23 +52,24 @@ function default_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
while true; do
|
while true; do
|
||||||
CHOICE=$(whiptail --title "SUPPORT" --menu "Select option" 11 58 1 \
|
CHOICE=$(
|
||||||
"1" "Check for Zigbee2MQTT Updates" 3>&2 2>&1 1>&3
|
whiptail --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
|
exit_status=$?
|
||||||
|
if [ $exit_status == 1 ]; then
|
||||||
clear
|
clear
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
header_info
|
header_info
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
1 )
|
1)
|
||||||
apk update && apk upgrade
|
apk update && apk upgrade
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
|
Loading…
Reference in New Issue