From 7af93db8869639d1d84b2ea84fa1641fd3bb1f26 Mon Sep 17 00:00:00 2001 From: bilulib Date: Sat, 17 May 2025 17:08:11 +0200 Subject: [PATCH] changed variable name to lowercase --- ct/huntarr.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/huntarr.sh b/ct/huntarr.sh index fd64f73..6fb15e1 100644 --- a/ct/huntarr.sh +++ b/ct/huntarr.sh @@ -5,7 +5,7 @@ source <(curl -fsSL https://git.bila.li/Proxmox/proxmox-ve-install-scripts/raw/b # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: [SOURCE_URL] -APP="Huntarr" +APP="huntarr" var_tags="${var_tags:-arr}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-1024}" @@ -30,9 +30,9 @@ function update_script() { fi RELEASE=$(curl -fsSL https://api.github.com/repos/plexguide/Huntarr.io/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') - if [[ "${RELEASE}" != "$(cat /opt/huntarr_version.txt)" ]] || [[ ! -f /opt/huntarr_version.txt ]]; then + if [[ "${RELEASE}" != "$(cat /opt/"${APP}"_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then msg_info "Stopping $APP" - systemctl stop huntarr + systemctl stop $APP msg_ok "Stopped $APP" msg_info "Creating Backup"