diff --git a/postgresql-setup b/postgresql-setup index 8fd509b..1348e1c 100644 --- a/postgresql-setup +++ b/postgresql-setup @@ -80,8 +80,10 @@ perform_initdb(){ fi # Initialize the database - $SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" \ - >> "$PGLOG" 2>&1 < /dev/null + initdbcmd="$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" + initdbcmd+=" $PGSETUP_INITDB_OPTIONS" + + $SU -l postgres -c "$initdbcmd" >> "$PGLOG" 2>&1 < /dev/null # Create directory for postmaster log files mkdir "$PGDATA/pg_log" diff --git a/postgresql.spec b/postgresql.spec index 39db8b5..370411c 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -1125,6 +1125,7 @@ fi %changelog * Mon Jan 13 2014 Pavel Raiskup - 9.3.2-4 - postgresql-setup(upgrade): don't stop old server when it can not be started +- postgresql-setup(initdb, upgrade): add $PGSETUP_INITDB_OPTIONS * Fri Jan 10 2014 Pavel Raiskup - 9.3.2-3 - build with -O3 on ppc64 (private #1051075)