Merge pull request #265 from linuxserver/master-ports

This commit is contained in:
Adam
2023-06-19 15:00:38 +01:00
committed by GitHub
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -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 \
+2 -1
View File
@@ -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 \
@@ -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