From fdb8876f9f6f06f15796bcdbc3281082665707bd Mon Sep 17 00:00:00 2001 From: tangowithfoxtrot <5676771+tangowithfoxtrot@users.noreply.github.com> Date: Wed, 3 Apr 2024 04:08:00 -0700 Subject: [PATCH] fix: unlock broken when no SERVE_PORT provided --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2908f6d..aacd362 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,7 +28,7 @@ BW_SERVE_PID=$! echo "\`bw serve\` pid: $BW_SERVE_PID" if [[ "$UNLOCK_VAULT" == "true" ]]; then - while ! curl -sX POST -H "Content-Type: application/json" -d "{\"password\": \"$VAULT_PASSWORD\"}" "http://localhost:$SERVE_PORT/unlock" >/dev/null; do + while ! curl -sX POST -H "Content-Type: application/json" -d "{\"password\": \"$VAULT_PASSWORD\"}" "http://localhost:${SERVE_PORT:-8087}/unlock" >/dev/null; do sleep 1 done echo "Vault unlocked!"