grafana exit-script

This commit is contained in:
tteckster 2023-03-22 12:41:41 -04:00 committed by GitHub
parent 089bb495d5
commit 9959493984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 8 deletions

View File

@ -52,15 +52,17 @@ function default_settings() {
}
function update_script() {
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 1 \
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