diff --git a/entrypoint.sh b/entrypoint.sh index ce9461f6..22a733e3 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -100,7 +100,7 @@ if [ "$DATABASE_EMBEDDED" = "true" ] && [ ! -d "$DATABASE_DATA_DIR" ]; then chown -R postgres:postgres "$DATABASE_DATA_DIR" su postgres -c "initdb -D $DATABASE_DATA_DIR" else - initdb -D "$DATABASE_DATA_DIR" + initdb -D "$DATABASE_DATA_DIR" -U postgres fi fi