Skip to content

Commit

Permalink
fix: unlock broken when no SERVE_PORT provided
Browse files Browse the repository at this point in the history
  • Loading branch information
tangowithfoxtrot authored Apr 3, 2024
1 parent 40670aa commit fdb8876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit fdb8876

Please sign in to comment.