changed variable name to lowercase

This commit is contained in:
bilulib
2025-05-17 17:08:11 +02:00
parent 76b0883ae0
commit 7af93db886

View File

@ -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 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: [SOURCE_URL] # Source: [SOURCE_URL]
APP="Huntarr" APP="huntarr"
var_tags="${var_tags:-arr}" var_tags="${var_tags:-arr}"
var_cpu="${var_cpu:-2}" var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
@ -30,9 +30,9 @@ function update_script() {
fi 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)}') 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" msg_info "Stopping $APP"
systemctl stop huntarr systemctl stop $APP
msg_ok "Stopped $APP" msg_ok "Stopped $APP"
msg_info "Creating Backup" msg_info "Creating Backup"