diff options
-rw-r--r-- | postgresql-setup | 6 |
1 files changed, 4 insertions, 2 deletions
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" |