fix: handle quotes in healthcheck.sh (#3130)
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.
This commit is contained in:
parent
22a05e1f02
commit
18f04a7d26
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
PORT=${FB_PORT:-$(jq .port /.filebrowser.json)}
|
PORT=${FB_PORT:-$(jq -r .port /.filebrowser.json)}
|
||||||
ADDRESS=${FB_ADDRESS:-$(jq .address /.filebrowser.json)}
|
ADDRESS=${FB_ADDRESS:-$(jq -r .address /.filebrowser.json)}
|
||||||
ADDRESS=${ADDRESS:-localhost}
|
ADDRESS=${ADDRESS:-localhost}
|
||||||
curl -f http://$ADDRESS:$PORT/health || exit 1
|
curl -f http://$ADDRESS:$PORT/health || exit 1
|
||||||
|
|
Loading…
Reference in New Issue