From aec34707601d7a28b736567e61584c039fb1d5ef Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:56:51 +0200 Subject: [PATCH] Update scrutiny.sh --- ct/scrutiny.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ct/scrutiny.sh b/ct/scrutiny.sh index c9c4734d..9b22fb8b 100644 --- a/ct/scrutiny.sh +++ b/ct/scrutiny.sh @@ -54,11 +54,7 @@ function default_settings() { } function update_script() { - if [[ ! -d /opt/scrutiny ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - + if [[ ! -d /opt/scrutiny ]]; then msg_error "No ${APP} Installation Found!"; exit; fi RELEASE=$(curl -s https://api.github.com/repos/AnalogJ/scrutiny/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Scrutiny Management" --radiolist --cancel-button Exit-Script "Spacebar = Select" 15 70 4 \ @@ -70,7 +66,7 @@ function update_script() { header_info if [ "$UPD" == "1" ]; then - if [[ "${RELEASE}" != "$(cat /opt/scrutiny_version.txt)" ]] || [[ ! -f /opt/scrutiny_version.txt ]]; then + if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Stopping all Scrutiny Services" WEBAPP_ACTIVE=$(systemctl is-active scrutiny.service)