From a0a9c3de537af72f1b9a08909a82fba4c6530b62 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 9 Jan 2014 09:45:02 +0100 Subject: postgresql-setup: add $PGSETUP_INITDB_OPTIONS Users may now specify by this variable parameters passed to initdb run. See `man initdb(1)`. This may help if user gets stacked with bug #1007802. Related: #1007802 Version: 9.3.2-4 --- postgresql-setup | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'postgresql-setup') 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" -- cgit