From 124abc764366c78fb0d14f10d482f132f0c1fae1 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 13 Jul 2025 21:28:46 +0200 Subject: [PATCH] chore: remove ln from init.sh --- docker/alpine/healthcheck.sh | 6 +++--- docker/alpine/init.sh | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docker/alpine/healthcheck.sh b/docker/alpine/healthcheck.sh index 70e71bf6..f86550dc 100644 --- a/docker/alpine/healthcheck.sh +++ b/docker/alpine/healthcheck.sh @@ -2,8 +2,8 @@ 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')} +PORT=${FB_PORT:-$(cat /config/settings.json | sh /JSON.sh | grep '\["port"\]' | awk '{print $2}')} +ADDRESS=${FB_ADDRESS:-$(cat /config/settings.json | sh /JSON.sh | grep '\["address"\]' | awk '{print $2}' | sed 's/"//g')} ADDRESS=${ADDRESS:-localhost} -wget -q --spider http://$ADDRESS:$PORT/health || exit 1 \ No newline at end of file +wget -q --spider http://$ADDRESS:$PORT/health || exit 1 diff --git a/docker/alpine/init.sh b/docker/alpine/init.sh index 5ea2cf6e..a4ac72ae 100755 --- a/docker/alpine/init.sh +++ b/docker/alpine/init.sh @@ -32,7 +32,4 @@ if [ -z "$config_file" ]; then set -- --config=/config/settings.json "$@" fi -# Create a symlink to the config file for compatibility with the healthcheck script -ln -s "$config_file" /tmp/FB_CONFIG - -exec filebrowser "$@" \ No newline at end of file +exec filebrowser "$@"