This commit is contained in:
tteckster
2023-03-21 13:40:34 -04:00
committed by GitHub
parent 0adb39c4e1
commit 3a2859feca
22 changed files with 23 additions and 8 deletions

View File

@@ -52,17 +52,13 @@ function default_settings() {
}
function update_script() {
if [[ ! -d /opt/cronicle ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 2 \
"1" "Update ${APP}" ON \
"2" "Install ${APP} Worker" OFF \
3>&1 1>&2 2>&3)
header_info
if [ "$UPD" == "1" ]; then
if [[ ! -d /opt/cronicle ]]; then
msg_error "No ${APP} Installation Found!";
exit
fi
msg_info "Updating ${APP}"
/opt/cronicle/bin/control.sh upgrade &>/dev/null
msg_ok "Updated ${APP}"