Fix the Postgres password script order

This commit is contained in:
Matthew Lopez 2023-12-27 14:58:26 -05:00
parent 48226264be
commit 88c501f505
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E

View File

@ -11,11 +11,11 @@ fi
. "$git_base/environment/postgres.env"
. "$git_base/environment/postgres.local.env"
docker compose up -d postgres
while ! docker compose exec postgres psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -c "\l"; do
echo "Waiting for PostgreSQL to start..."
sleep 1
done
docker compose up -d postgres
docker compose exec postgres psql -U "$POSTGRES_USER" -c "ALTER USER $POSTGRES_USER PASSWORD '$POSTGRES_PASSWORD';"