]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- use C locale for initalization by default; it's safer than other loclaes; https... auto/ti/postgresql-8_3_3-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 5 Jul 2008 21:37:05 +0000 (21:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.76
    postgresql.sysconfig -> 1.22

postgresql.init
postgresql.sysconfig

index 7eb935a9f420624a72fa96bb86b6da4f8ea6bf68..06dd78c8edcee9a7fd457242dc578de2750dd212 100644 (file)
@@ -18,6 +18,8 @@ cd /
 # Get network config
 . /etc/sysconfig/network
 
+PG_INIT_LOCALE=C
+
 # Get service config
 if [ -f /etc/sysconfig/postgresql ]; then
        . /etc/sysconfig/postgresql
@@ -245,7 +247,7 @@ case "$action" in
                        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\"")'!'
index e837eaa1a3b6d809e17d5e23c90c9e8586a4738d..1e38c0337450997b04ff01ef2d0c05f7daf44c26 100644 (file)
@@ -6,6 +6,9 @@
 # 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"
 
This page took 0.06093 seconds and 4 git commands to generate.