[feat]: migrate all update_scripts to new version helper (gh) (#7262)

* first migrations

* finalize

* add fix kometa inside function
This commit is contained in:
CanbiZ
2025-08-29 12:27:24 +02:00
committed by GitHub
parent 54b59e24ca
commit 9305a4ca85
145 changed files with 1041 additions and 1656 deletions

View File

@@ -29,16 +29,20 @@ function update_script() {
exit
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/Radarr/Radarr/releases/latest | jq -r '.tag_name' | sed 's/^v//')
if [[ ! -f ~/.radarr ]] || [[ "$RELEASE" != "$(cat ~/.radarr 2>/dev/null)" ]]; then
if check_for_gh_release "Radarr" "Radarr/Radarr"; then
msg_info "Stopping Service"
systemctl stop radarr
msg_ok "Stopped Service"
rm -rf /opt/Radarr
fetch_and_deploy_gh_release "Radarr" "Radarr/Radarr" "prebuild" "latest" "/opt/Radarr" "Radarr.master*linux-core-x64.tar.gz"
chmod 775 /opt/Radarr
msg_ok "Updated successfully"
else
msg_ok "No update required. $APP is already at v${RELEASE}"
fi
msg_info "Starting Service"
systemctl start radarr
msg_ok "Started Service"
msg_ok "Updated successfully"
fi
exit
}