From 07f8bde4427142a7749a5eac8b0711c81efa2786 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Wed, 6 Jun 2007 19:01:56 +0000 Subject: [PATCH] * added comments and creation of runit link on pkg_postgresql.postinstall git-svn-id: svn+ssh://svn.opensde.net/home/users/karasz/x5/tardiba/trunk@61 471cc25b-571d-0410-8e29-1f4f9b506cef --- pkg_postgresql.postinstall | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg_postgresql.postinstall b/pkg_postgresql.postinstall index af0d32e..0ff85f8 100644 --- a/pkg_postgresql.postinstall +++ b/pkg_postgresql.postinstall @@ -12,11 +12,17 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +# create propper ownerships on postgresql home and data directory 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 postgres "/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," \ -e "s,^#backslash_quote\ =\ safe_encoding,backslash_quote\ =\ on," \ -e "s,^#add_missing_from\ =\ off,add_missing_from\ =\ on," /var/opt/postgresql/data/postgresql.conf +# create the runit link +ln -svnf /etc/opt/postgresql /service/postgresql