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