Changed files:
postgresql.init -> 1.76
postgresql.sysconfig -> 1.22
# Get network config
. /etc/sysconfig/network
+PG_INIT_LOCALE=C
+
# Get service config
if [ -f /etc/sysconfig/postgresql ]; then
. /etc/sysconfig/postgresql
mkdir -p $pgdir
chmod 700 $pgdir
chown postgres:postgres $pgdir
- TMPDIR=/tmp su postgres -s /bin/sh -c "initdb -E UNICODE -D $pgdir"
+ LC_ALL=$PG_INIT_LOCALE 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.
#
+# locale used at service postgresql init
+# PG_INIT_LOCALE=C
+
# standard setting
PG_DB_CLUSTERS="/var/lib/pgsql"