Tardiba - The Tasmanian Devil Database Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
936 B

# --- 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,"