Skip to content

Commit

Permalink
Merge pull request #265 from linuxserver/master-ports
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad authored Jun 19, 2023
2 parents 2cc6794 + b04ca5c commit 0fa4e95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ RUN \
libmono-system4.0-cil \
mono-runtime \
mono-vbnc \
mediainfo && \
mediainfo \
xmlstarlet && \
echo "**** install sonarr ****" && \
mkdir -p /app/sonarr/bin && \
if [ -z ${SONARR_VERSION+x} ]; then \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ RUN \
libmono-system4.0-cil \
mono-runtime \
mono-vbnc \
mediainfo && \
mediainfo \
xmlstarlet && \
echo "**** install sonarr ****" && \
mkdir -p /app/sonarr/bin && \
if [ -z ${SONARR_VERSION+x} ]; then \
Expand Down
4 changes: 3 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-sonarr/data/check
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

if [[ $(curl -sL "http://localhost:8989/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml)

if [[ $(curl -sL "http://localhost:${PORT:-8989}/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
exit 0
else
exit 1
Expand Down

0 comments on commit 0fa4e95

Please sign in to comment.