mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
18f04a7d26
This file as is makes a value of `"localhost"` as the address in the .filebrowser.json file read in as `"localhost"` instead of `localhost`. These quotes break the curl command. Using `-r` with jq fixes this.
6 lines
198 B
Bash
6 lines
198 B
Bash
#!/bin/sh
|
|
PORT=${FB_PORT:-$(jq -r .port /.filebrowser.json)}
|
|
ADDRESS=${FB_ADDRESS:-$(jq -r .address /.filebrowser.json)}
|
|
ADDRESS=${ADDRESS:-localhost}
|
|
curl -f http://$ADDRESS:$PORT/health || exit 1
|