mirror of https://github.com/tteck/Proxmox.git
parent
cb24aaadd8
commit
636beae720
|
@ -52,22 +52,30 @@ function default_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 2 \
|
LXCIP=$(ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
|
||||||
"1" "Update LXC OS" ON \
|
while true; do
|
||||||
"2" "Manually Update $APP" OFF \
|
CHOICE=$(whiptail --title "SUPPORT" --menu "Select option" 11 58 2 \
|
||||||
3>&1 1>&2 2>&3)
|
"1" "Update LXC OS" \
|
||||||
|
"2" "Manually Update $APP" 3>&2 2>&1 1>&3
|
||||||
|
)
|
||||||
|
exit_status=$?
|
||||||
|
if [ $exit_status == 1 ] ; then
|
||||||
|
clear
|
||||||
|
exit-script
|
||||||
|
fi
|
||||||
header_info
|
header_info
|
||||||
if [ "$UPD" == "1" ]; then
|
case $CHOICE in
|
||||||
apk update && apk upgrade
|
1 )
|
||||||
exit
|
apk update && apk upgrade
|
||||||
fi
|
exit
|
||||||
|
;;
|
||||||
if [ "$UPD" == "2" ]; then
|
2 )
|
||||||
header_info
|
header_info
|
||||||
echo "In the process of creating a method to update"
|
echo "In the process of creating a method to update"
|
||||||
exit
|
exit
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
|
Loading…
Reference in New Issue