mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-14 11:13:27 +01:00
Fixes (#9874)
This commit is contained in:
@ -27,6 +27,7 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop sonarr
|
systemctl stop sonarr
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
@ -38,6 +39,7 @@ function update_script() {
|
|||||||
mv Sonarr /opt
|
mv Sonarr /opt
|
||||||
rm -rf SonarrV4.tar.gz
|
rm -rf SonarrV4.tar.gz
|
||||||
msg_ok "Updated Sonarr"
|
msg_ok "Updated Sonarr"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start sonarr
|
systemctl start sonarr
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|||||||
@ -24,7 +24,6 @@ curl -fsSL "https://services.sonarr.tv/v1/download/main/latest?version=4&os=linu
|
|||||||
tar -xzf SonarrV4.tar.gz
|
tar -xzf SonarrV4.tar.gz
|
||||||
mv Sonarr /opt
|
mv Sonarr /opt
|
||||||
rm -rf SonarrV4.tar.gz
|
rm -rf SonarrV4.tar.gz
|
||||||
|
|
||||||
msg_ok "Installed Sonarr v4"
|
msg_ok "Installed Sonarr v4"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@ -32,12 +31,14 @@ cat <<EOF >/etc/systemd/system/sonarr.service
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Sonarr Daemon
|
Description=Sonarr Daemon
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/opt/Sonarr/Sonarr -nobrowser -data=/var/lib/sonarr/
|
ExecStart=/opt/Sonarr/Sonarr -nobrowser -data=/var/lib/sonarr/
|
||||||
TimeoutStopSec=20
|
TimeoutStopSec=20
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user