You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
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
|