From adf460d5447b809ccddbaf787a13af034b5f6b5f Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 23 Mar 2023 17:13:37 -0400 Subject: [PATCH] Update cronicle.sh --- ct/cronicle.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ct/cronicle.sh b/ct/cronicle.sh index 9621c991..53702989 100644 --- a/ct/cronicle.sh +++ b/ct/cronicle.sh @@ -57,12 +57,13 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb "2" "Install ${APP} Worker" OFF \ 3>&1 1>&2 2>&3) +if [ "$UPD" == "1" ]; then header_info msg_info "Updating ${APP}" /opt/cronicle/bin/control.sh upgrade &>/dev/null msg_ok "Updated ${APP}" exit - +fi if [ "$UPD" == "2" ]; then LATEST=$(curl -sL https://api.github.com/repos/jhuckaby/Cronicle/releases/latest | grep '"tag_name":' | cut -d'"' -f4) IP=$(hostname -I | awk '{print $1}')