From e03e102c2a571eb356452d0e1ace512cdbb975cb Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Tue, 2 Apr 2024 09:42:49 -0500 Subject: [PATCH] fix: add jq raw output flag for port as well --- healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcheck.sh b/healthcheck.sh index dbcf54f5..b8b50039 100644 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,5 +1,5 @@ #!/bin/sh -PORT=${FB_PORT:-$(jq .port /.filebrowser.json)} +PORT=${FB_PORT:-$(jq -r .port /.filebrowser.json)} ADDRESS=${FB_ADDRESS:-$(jq -r .address /.filebrowser.json)} ADDRESS=${ADDRESS:-localhost} curl -f http://$ADDRESS:$PORT/health || exit 1