Follow $FB_PORT when set

When the `FB_PORT` environment variable is set, respect its value. Otherwise, pick the port from the configuration.
This commit is contained in:
Emmanuel Frecon 2023-11-06 18:59:24 +01:00 committed by GitHub
parent a4cb813ddf
commit c408d6427d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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