Update scrutiny.sh

This commit is contained in:
CanbiZ 2024-06-25 17:56:51 +02:00 committed by GitHub
parent 546b65d59e
commit aec3470760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 6 deletions

View File

@ -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)