Skip to content

Commit

Permalink
Use POSTGRES_PASSWORD as in Postgres Docker documentation, but also P…
Browse files Browse the repository at this point in the history
…OSTGRESQL_PASSWORD to stay compatible
  • Loading branch information
ateuber authored and mkindahl committed Oct 26, 2023
1 parent edaddde commit 37148a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-entrypoint-initdb.d/000_install_timescaledb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ fi

echo "timescaledb.telemetry_level=${TS_TELEMETRY}" >> ${POSTGRESQL_CONF_DIR}/postgresql.conf

if [ -z "${POSTGRESQL_PASSWORD:-}" ]; then
POSTGRESQL_PASSWORD=${POSTGRES_PASSWORD}
fi
export PGPASSWORD="$POSTGRESQL_PASSWORD"

# create extension timescaledb in initial databases
Expand Down

0 comments on commit 37148a5

Please sign in to comment.