summaryrefslogtreecommitdiffstats
path: root/abs/extra/postgresql/postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/postgresql/postgresql')
-rwxr-xr-xabs/extra/postgresql/postgresql4
1 files changed, 2 insertions, 2 deletions
diff --git a/abs/extra/postgresql/postgresql b/abs/extra/postgresql/postgresql
index c6aedfb..b00289e 100755
--- a/abs/extra/postgresql/postgresql
+++ b/abs/extra/postgresql/postgresql
@@ -20,8 +20,8 @@ case "$1" in
stat_done
fi
if [ ! -d $PGROOT ]; then
- mkdir -p $PGROOT/data && chown postgres.postgres $PGROOT/data
- su - postgres -c "/usr/bin/initdb -D $PGROOT/data"
+ mkdir -p $PGROOT/data && chown -R postgres.postgres $PGROOT
+ su - postgres -c "/usr/bin/initdb $INITOPTS -D $PGROOT/data"
fi
if [ ! -e /var/log/postgresql.log ]; then
touch /var/log/postgresql.log