mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-13 07:10:51 +02:00
[feat]: migrate all update_scripts to new version helper (gh) (#7262)
* first migrations * finalize * add fix kometa inside function
This commit is contained in:
16
ct/radarr.sh
16
ct/radarr.sh
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user