This commit is contained in:
Slaviša Arežina
2025-12-11 12:30:27 +01:00
committed by GitHub
parent f5b0c03362
commit 2b1f62e74f
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,7 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Stopping Service"
systemctl stop sonarr
msg_ok "Stopped Service"
@ -38,6 +39,7 @@ function update_script() {
mv Sonarr /opt
rm -rf SonarrV4.tar.gz
msg_ok "Updated Sonarr"
msg_info "Starting Service"
systemctl start sonarr
msg_ok "Started Service"

View File

@ -24,7 +24,6 @@ curl -fsSL "https://services.sonarr.tv/v1/download/main/latest?version=4&os=linu
tar -xzf SonarrV4.tar.gz
mv Sonarr /opt
rm -rf SonarrV4.tar.gz
msg_ok "Installed Sonarr v4"
msg_info "Creating Service"
@ -32,12 +31,14 @@ cat <<EOF >/etc/systemd/system/sonarr.service
[Unit]
Description=Sonarr Daemon
After=syslog.target network.target
[Service]
Type=simple
ExecStart=/opt/Sonarr/Sonarr -nobrowser -data=/var/lib/sonarr/
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF