mirror of
				https://github.com/linuxserver/docker-jellyfin.git
				synced 2025-10-31 04:57:38 +09:00 
			
		
		
		
	Don't try and read network.xml if it doesn't exist (like on first run)
This commit is contained in:
		| @@ -1,6 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
|  | if [[ -f "/config/network.xml" ]]; then | ||||||
|     PORT=$(xmlstarlet sel -T -t -v /NetworkConfiguration/HttpServerPortNumber /config/network.xml) |     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 | if [[ $(curl -sL "http://localhost:${PORT:-8096}/health" 2>/dev/null) = "Healthy" ]]; then | ||||||
|     exit 0 |     exit 0 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user