fix(healthcheck): use address configured if not empty (#2938)

This commit is contained in:
Quentin McGaw 2024-01-30 10:37:17 +01:00 committed by GitHub
parent 70c826133b
commit 81cd8fc6d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,5 @@
#!/bin/sh
PORT=${FB_PORT:-$(jq .port /.filebrowser.json)}
curl -f http://localhost:$PORT/health || exit 1
ADDRESS=${FB_ADDRESS:-$(jq .address /.filebrowser.json)}
ADDRESS=${ADDRESS:-localhost}
curl -f http://$ADDRESS:$PORT/health || exit 1