mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-07-15 04:20:26 +00:00
chore: remove ln from init.sh
This commit is contained in:
parent
b8454bb2e4
commit
124abc7643
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
PORT=${FB_PORT:-$(cat /tmp/FB_CONFIG | sh /JSON.sh | grep '\["port"\]' | awk '{print $2}')}
|
PORT=${FB_PORT:-$(cat /config/settings.json | 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=${FB_ADDRESS:-$(cat /config/settings.json | sh /JSON.sh | grep '\["address"\]' | awk '{print $2}' | sed 's/"//g')}
|
||||||
ADDRESS=${ADDRESS:-localhost}
|
ADDRESS=${ADDRESS:-localhost}
|
||||||
|
|
||||||
wget -q --spider http://$ADDRESS:$PORT/health || exit 1
|
wget -q --spider http://$ADDRESS:$PORT/health || exit 1
|
@ -32,7 +32,4 @@ if [ -z "$config_file" ]; then
|
|||||||
set -- --config=/config/settings.json "$@"
|
set -- --config=/config/settings.json "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a symlink to the config file for compatibility with the healthcheck script
|
|
||||||
ln -s "$config_file" /tmp/FB_CONFIG
|
|
||||||
|
|
||||||
exec filebrowser "$@"
|
exec filebrowser "$@"
|
Loading…
x
Reference in New Issue
Block a user