mirror of
https://github.com/linuxserver/docker-jellyfin.git
synced 2026-07-28 20:40:43 +00:00
Don't try and read network.xml if it doesn't exist (like on first run)
This commit is contained in:
parent
72c8f9a3b4
commit
ec28cb1455
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
PORT=$(xmlstarlet sel -T -t -v /NetworkConfiguration/HttpServerPortNumber /config/network.xml)
|
||||
if [[ -f "/config/network.xml" ]]; then
|
||||
PORT=$(xmlstarlet sel -T -t -v /NetworkConfiguration/HttpServerPortNumber /config/network.xml)
|
||||
fi
|
||||
|
||||
if [[ $(curl -sL "http://localhost:${PORT:-8096}/health" 2>/dev/null) = "Healthy" ]]; then
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue