Move Sonarr to v4.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user