diff --git a/.docker/start-gvmd.sh b/.docker/start-gvmd.sh index 9179ec659..81d29d45b 100644 --- a/.docker/start-gvmd.sh +++ b/.docker/start-gvmd.sh @@ -5,6 +5,9 @@ [ -z "$GVMD_ARGS" ] && GVMD_ARGS="--listen-mode=666" [ -z "$GVMD_USER" ] && GVMD_USER="gvmd" +echo "waiting 10 seconds for postgres startup" +sleep 10 + # check for psql connection until psql -U "$GVMD_USER" -d gvmd -c "SELECT 'connected' as connection"; do echo "waiting 1 second to retry psql connection"