Skip to content

Commit

Permalink
Fix check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Jul 5, 2023
1 parent eacf1b2 commit 5784bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-jellyfin/data/check
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORT=$(xmlstarlet sel -T -t -v /NetworkConfiguration/HttpServerPortNumber /config/network.xml)

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

0 comments on commit 5784bb1

Please sign in to comment.