change opt path variable name

This commit is contained in:
bilulib
2025-05-17 03:31:20 +02:00
parent d80074dd38
commit 76b0883ae0

View File

@ -30,7 +30,7 @@ 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/"${APP}"_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
if [[ "${RELEASE}" != "$(cat /opt/huntarr_version.txt)" ]] || [[ ! -f /opt/huntarr_version.txt ]]; then
msg_info "Stopping $APP"
systemctl stop huntarr
msg_ok "Stopped $APP"