From 16f34e9bd09276ea97308fa46470b86affeedecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 6 Jan 2026 22:58:04 +0100 Subject: [PATCH] Refactor (#10573) --- ct/sonarr.sh | 8 +------- frontend/public/json/sonarr.json | 2 +- install/sonarr-install.sh | 7 +------ 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/ct/sonarr.sh b/ct/sonarr.sh index ebfe68dfc..390d177d4 100644 --- a/ct/sonarr.sh +++ b/ct/sonarr.sh @@ -32,13 +32,7 @@ function update_script() { systemctl stop sonarr msg_ok "Stopped Service" - msg_info "Updating Sonarr" - curl -fsSL "https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64" -o "SonarrV4.tar.gz" - tar -xzf SonarrV4.tar.gz - rm -rf /opt/Sonarr - mv Sonarr /opt - rm -rf SonarrV4.tar.gz - msg_ok "Updated Sonarr" + 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" systemctl start sonarr diff --git a/frontend/public/json/sonarr.json b/frontend/public/json/sonarr.json index 86d158cdd..009014508 100644 --- a/frontend/public/json/sonarr.json +++ b/frontend/public/json/sonarr.json @@ -12,7 +12,7 @@ "documentation": "https://wiki.servarr.com/sonarr", "website": "https://sonarr.tv/", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/sonarr.webp", - "config_path": "", + "config_path": "/var/lib/sonarr/config.xml", "description": "Sonarr is a personal video recorder (PVR) software designed for Usenet and BitTorrent users. It allows users to manage and organize their TV show collection with ease. Sonarr integrates with popular Usenet and BitTorrent clients, such as NZBget and Transmission, to automate the downloading and organizing of TV show files. The software provides a web-based interface for managing and organizing TV shows, making it easy to search and find titles, seasons, and episodes. Sonarr also supports metadata management, including TV show posters and information, making it easy for users to keep their TV show collection organized and up-to-date. The software is designed to be easy to use and provides a simple and intuitive interface for managing and organizing TV show collections, making it a valuable tool for TV show enthusiasts who want to keep their collection organized and up-to-date. With Sonarr, users can enjoy their TV show collection from anywhere, making it a powerful tool for managing and sharing TV show files.", "install_methods": [ { diff --git a/install/sonarr-install.sh b/install/sonarr-install.sh index b3ba6ab0c..01b22cf6b 100644 --- a/install/sonarr-install.sh +++ b/install/sonarr-install.sh @@ -17,14 +17,9 @@ msg_info "Installing Dependencies" $STD apt install -y sqlite3 msg_ok "Installed Dependencies" -msg_info "Installing Sonarr v4" +fetch_and_deploy_gh_release "Sonarr" "Sonarr/Sonarr" "prebuild" "latest" "/opt/Sonarr" "Sonarr.main.*.linux-x64.tar.gz" mkdir -p /var/lib/sonarr/ chmod 775 /var/lib/sonarr/ -curl -fsSL "https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64" -o "SonarrV4.tar.gz" -tar -xzf SonarrV4.tar.gz -mv Sonarr /opt -rm -rf SonarrV4.tar.gz -msg_ok "Installed Sonarr v4" msg_info "Creating Service" cat </etc/systemd/system/sonarr.service