Skip to content

Commit

Permalink
fix(initdb): fix if POSTGRES_USER var doesn't exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 authored Oct 10, 2024
1 parent c747bdb commit f149217
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions initdb/999_alter_owner_temp_revert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ if [ -z "${POSTGRESQL_POSTGRES_PASSWORD:-}" ]; then
POSTGRESQL_POSTGRES_PASSWORD=${POSTGRES_POSTGRES_PASSWORD:-}
fi

if [ -z "${POSTGRES_USER:-}" ]; then
POSTGRES_USER="postgres"
fi

export PGPASSWORD="$POSTGRESQL_POSTGRES_PASSWORD"

if [ $POSTGRES_USER != "postgres" ]; then
Expand Down

0 comments on commit f149217

Please sign in to comment.