From c408d6427d08d5f8df184a7d5b723ab2d6909c99 Mon Sep 17 00:00:00 2001 From: Emmanuel Frecon <9443924+efrecon@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:59:24 +0100 Subject: [PATCH] Follow `$FB_PORT` when set When the `FB_PORT` environment variable is set, respect its value. Otherwise, pick the port from the configuration. --- healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcheck.sh b/healthcheck.sh index 43eb2176..50263896 100644 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,3 +1,3 @@ #!/bin/sh -PORT=$(jq .port /.filebrowser.json) +PORT=${FB_PORT:-$(jq .port /.filebrowser.json)} curl -f http://localhost:$PORT/health || exit 1