mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
d59ad594b8
When the `FB_PORT` environment variable is set, respect its value. Otherwise, pick the port from the configuration.
4 lines
106 B
Bash
4 lines
106 B
Bash
#!/bin/sh
|
|
PORT=${FB_PORT:-$(jq .port /.filebrowser.json)}
|
|
curl -f http://localhost:$PORT/health || exit 1
|