Skip to content

Commit

Permalink
fix(initdb): fix conf dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 committed Oct 9, 2024
1 parent 9f41d2f commit 49cfb33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion initdb/000_alter_owner_temp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ $POSTGRES_USER != "postgres" ]; then
fi

# Find "timescaledb.telemetry_level" in the postgresql.conf file
if grep -q "timescaledb.telemetry_level" /bitnami/postgresql/conf/postgresql.conf; then
if grep -q "timescaledb.telemetry_level" ${POSTGRESQL_CONF_DIR}/postgresql.conf; then
# Change the owner of the initial databases to the POSTGRES_USER
psql -U postgres postgres -f "ALTER DATABASE postgres OWNER TO $POSTGRES_USER;"
psql -U postgres template1 -f "ALTER DATABASE template1 OWNER TO $POSTGRES_USER;"
Expand Down
2 changes: 1 addition & 1 deletion initdb/999_alter_owner_temp_revert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ $POSTGRES_USER != "postgres" ]; then
fi

# Find "timescaledb.telemetry_level" in the postgresql.conf file
if grep -q "timescaledb.telemetry_level" /bitnami/postgresql/conf/postgresql.conf; then
if grep -q "timescaledb.telemetry_level" ${POSTGRESQL_CONF_DIR}/postgresql.conf; then
# Change the owner of the initial databases to the POSTGRES_USER
psql -U postgres postgres -f "ALTER DATABASE postgres OWNER TO postgres;"
psql -U postgres template1 -f "ALTER DATABASE template1 OWNER TO postgres;"
Expand Down

0 comments on commit 49cfb33

Please sign in to comment.