From 437e0cc62e7eb3299397ed92cdadee33803a7b95 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Thu, 21 Jun 2007 19:01:14 +0000 Subject: [PATCH] * corrected postgresql.postinstall to be able to create the db cluster git-svn-id: svn+ssh://svn.opensde.net/home/users/karasz/x5/tardiba/trunk@76 471cc25b-571d-0410-8e29-1f4f9b506cef --- postgresql.postinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.postinstall b/postgresql.postinstall index 610406f..45c2a61 100644 --- a/postgresql.postinstall +++ b/postgresql.postinstall @@ -17,7 +17,7 @@ chown postgres:postgres /opt/postgresql chown postgres:postgres /var/opt/postgresql/data/ # create the initial cluster (WARNING!! this cluster will be SQL_ASCII) -su -c "/opt/postgresql/bin/initdb -D /var/opt/postgresql/data" postgres +su - postgres -c "/opt/postgresql/bin/initdb -D /var/opt/postgresql/data" # enable the X5 compatibility options sed -i -e "s,^#default_with_oids\ =\ off,default_with_oids\ =\ on," \