Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/init_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ then
CONTAINER_NAME="postgres_$(date '+%s')"
# Launch postgres using Docker
docker run \
--env POSTGRES_USER=${SUPERUSER} \
--env POSTGRES_PASSWORD=${SUPERUSER_PWD} \
--env POSTGRES_USER="${SUPERUSER}" \
--env POSTGRES_PASSWORD="${SUPERUSER_PWD}" \
--health-cmd="pg_isready -U ${SUPERUSER} || exit 1" \
--health-interval=1s \
--health-timeout=5s \
Expand All @@ -44,7 +44,7 @@ then
# ^ Increased maximum number of connections for testing purposes

until [ \
"$(docker inspect -f "{{.State.Health.Status}}" ${CONTAINER_NAME})" == \
"$(docker inspect -f "{{.State.Health.Status}}" "${CONTAINER_NAME}")" == \
"healthy" \
]; do
>&2 echo "Postgres is still unavailable - sleeping"
Expand Down