as simple at it was.
Changed files:
postgresql.init -> 1.66
postgresql.sysconfig -> 1.21
# Get network config
. /etc/sysconfig/network
-# Preconfigure some variables:
-PG_INITDB_ENCODING=UNICODE
-
# Get service config
if [ -f /etc/sysconfig/postgresql ]; then
. /etc/sysconfig/postgresql
mkdir -p $pgdir
chmod 700 $pgdir
chown postgres:postgres $pgdir
- if [ "x${PG_INITDB_ENCODING}x" != "xx" ]; then
- TMPENC="-E ${PG_INITDB_ENCODING}"
- else
- TMPENC=
- fi
- TMPDIR=/tmp su postgres -s /bin/sh -c "initdb ${TMPENC} -D $pgdir"
+ TMPDIR=/tmp su postgres -s /bin/sh -c "initdb -E UNICODE -D $pgdir"
fi
done
echo $(nls "REMEMBER to setup password for user \"postgres\"")'!'
# you should change TCP/IP port, at least.
#
-# if you want change default initdb encoding use (value WITHOUT QUOTES!):
-# PG_INITDB_ENCODING=UNICODE
-# e.g. if you want use database default encoding use:
-# PG_INITDB_ENCODING=
-
# standard setting
PG_DB_CLUSTERS="/var/lib/pgsql"