Browse Source

* improved tardiba, added target/tardiba/pkg_postgres.postinstall

git-svn-id: svn+ssh://svn.opensde.net/home/users/karasz/x5/tardiba/trunk@58 471cc25b-571d-0410-8e29-1f4f9b506cef
master
Nagy Karoly Gabriel 17 years ago
parent
commit
415be07d92
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      pkg_postgresql.postinstall

+ 22
- 0
pkg_postgresql.postinstall

@ -0,0 +1,22 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/tardiba/pkg_postgresql.postinstall
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
chown postgres:postgres /opt/postgresql
chown postgres:postgres /var/opt/postgresql/data/
su -c postgres "/opt/postgresql/bin/initdb -D /var/opt/postgresql/data"
sed -i "s,#default_with_oids\ =\ off,default_with_oids\ =\ on,"
sed -i "s,#backslash_quote\ =\ off,backslash_quote\ =\ on,"
sed -i "s,#add_missing_from\ =\ off,add_missing_from\ =\ on,"

Loading…
Cancel
Save