Move Sonarr to v4.

This commit is contained in:
Roxedus
2023-12-30 04:38:08 +01:00
parent a393093131
commit cc03eefbfc
10 changed files with 46 additions and 120 deletions
@@ -1,12 +1,6 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# cleanup pid if it exists
if [[ -e /config/sonarr.pid ]]; then
rm -rf /config/sonarr.pid
fi
# permissions
lsiown -R abc:abc \
/app/sonarr/bin \
/config
@@ -1,6 +1,8 @@
#!/bin/bash
PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml)
if [ -f /config/config.xml ]; then
PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml)
fi
if [[ $(curl -sL "http://localhost:${PORT:-8989}/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
exit 0
+1 -1
View File
@@ -3,5 +3,5 @@
exec \
s6-notifyoncheck -d -n 300 -w 1000 \
cd /app/sonarr/bin s6-setuidgid abc mono --debug Sonarr.exe \
cd /app/sonarr/bin s6-setuidgid abc /app/sonarr/bin/Sonarr \
-nobrowser -data=/config