diff --git a/bitnami/postgresql/bitnami-utils-custom.sh b/bitnami/postgresql/bitnami-utils-custom.sh index 292c45ded34f..4bd3ef4222c0 100644 --- a/bitnami/postgresql/bitnami-utils-custom.sh +++ b/bitnami/postgresql/bitnami-utils-custom.sh @@ -8,6 +8,8 @@ initialize_database() { gosu $BITNAMI_APP_USER $BITNAMI_APP_DIR/bin/initdb -D $BITNAMI_APP_DIR/data \ -U $BITNAMI_APP_USER -E unicode -A trust >/dev/null + # remove the config files generated by initdb + rm -rf $BITNAMI_APP_DIR/data/{pg_hba.conf,pg_ident.conf,postgresql.conf} } create_custom_database() {