This commit is contained in:
bkellam 2025-11-05 22:20:13 -08:00
parent 0ca1b7e62e
commit 5cb1295b90

View file

@ -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