mirror of https://github.com/tteck/Proxmox.git
grafana exit-script
This commit is contained in:
parent
089bb495d5
commit
9959493984
|
@ -52,15 +52,17 @@ function default_settings() {
|
|||
}
|
||||
|
||||
function update_script() {
|
||||
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 1 \
|
||||
"1" "Check for Grafana Updates" ON \
|
||||
3>&1 1>&2 2>&3)
|
||||
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 1 \
|
||||
"1" "Check for Grafana Updates" ON \
|
||||
3>&1 1>&2 2>&3)
|
||||
|
||||
header_info
|
||||
if [ "$UPD" == "1" ]; then
|
||||
apk update && apk upgrade
|
||||
exit;
|
||||
fi
|
||||
header_info
|
||||
if [ "$UPD" == "1" ]; then
|
||||
apk update && apk upgrade
|
||||
exit;
|
||||
else
|
||||
exit-script
|
||||
fi
|
||||
}
|
||||
|
||||
start
|
||||
|
|
Loading…
Reference in New Issue