Skip to content

Commit

Permalink
chore(entrypoint): use correct nc parameter
Browse files Browse the repository at this point in the history
use -z instead of --send-only since were not sending anything
  • Loading branch information
charn committed Nov 28, 2024
1 parent f614325 commit 2f9de85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

if [ -z "$SKIP_DATABASE_CHECK" -o "$SKIP_DATABASE_CHECK" = "0" ]; then
until nc --verbose --wait 30 --send-only "$DATABASE_HOST" 5432
until nc --verbose --wait 30 -z "$DATABASE_HOST" 5432
do
echo "Waiting for postgres database connection..."
sleep 1
Expand Down

0 comments on commit 2f9de85

Please sign in to comment.