diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2014-01-09 09:45:02 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2014-01-13 10:01:44 +0100 |
commit | a0a9c3de537af72f1b9a08909a82fba4c6530b62 (patch) | |
tree | b75785bd6c815d6fcfcb282e7d9648b96fe79840 | |
parent | ff5b697d3a6dedd5000063f088f267f88462413a (diff) | |
download | postgresql-setup-a0a9c3de537af72f1b9a08909a82fba4c6530b62.tar.gz postgresql-setup-a0a9c3de537af72f1b9a08909a82fba4c6530b62.tar.xz postgresql-setup-a0a9c3de537af72f1b9a08909a82fba4c6530b62.zip |
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
-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" |