Check for release for Sonarr (#14354)

This commit is contained in:
Luca Comellini
2026-05-08 23:18:13 -07:00
committed by GitHub
parent d3cdf27a77
commit 409c0aad1b
+11 -8
View File
@@ -23,21 +23,24 @@ function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /var/lib/sonarr/ ]]; then if [[ ! -d /var/lib/sonarr/ ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_info "Stopping Service" if check_for_gh_release "Sonarr" "Sonarr/Sonarr"; then
systemctl stop sonarr msg_info "Stopping Service"
msg_ok "Stopped Service" systemctl stop sonarr
msg_ok "Stopped Service"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Sonarr" "Sonarr/Sonarr" "prebuild" "latest" "/opt/Sonarr" "Sonarr.main.*.linux-x64.tar.gz" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Sonarr" "Sonarr/Sonarr" "prebuild" "latest" "/opt/Sonarr" "Sonarr.main.*.linux-x64.tar.gz"
msg_info "Starting Service" msg_info "Starting Service"
systemctl start sonarr systemctl start sonarr
msg_ok "Started Service" msg_ok "Started Service"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
fi
exit exit
} }