mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-07-13 19:40:31 +00:00
9 lines
313 B
Bash
9 lines
313 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
PORT=${FB_PORT:-$(cat /tmp/FB_CONFIG | sh /JSON.sh | grep '\["port"\]' | awk '{print $2}')}
|
|
ADDRESS=${FB_ADDRESS:-$(cat /tmp/FB_CONFIG | sh /JSON.sh | grep '\["address"\]' | awk '{print $2}' | sed 's/"//g')}
|
|
ADDRESS=${ADDRESS:-localhost}
|
|
|
|
wget -q --spider http://$ADDRESS:$PORT/health || exit 1 |