Browse Source

* 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
master
Nagy Karoly Gabriel 17 years ago
parent
commit
07f8bde442
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      pkg_postgresql.postinstall

+ 6
- 0
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

Loading…
Cancel
Save