wok-current rev 1649
postgresql: no locale by default
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 08 13:36:30 2008 +0000 (2008-11-08) |
parents | 3febe9607730 |
children | dfadaaf136ef |
files | postgresql/stuff/etc/init.d/postgresql |
line diff
1.1 --- a/postgresql/stuff/etc/init.d/postgresql Sat Nov 08 13:35:35 2008 +0000 1.2 +++ b/postgresql/stuff/etc/init.d/postgresql Sat Nov 08 13:36:30 2008 +0000 1.3 @@ -11,14 +11,16 @@ 1.4 NAME=Postgresql 1.5 DESC="PostgreSQL server" 1.6 OPTIONS=$PGSQL_OPTIONS 1.7 +INIT_OPTIONS=$PGSQLINIT_OPTIONS 1.8 [ -n "$OPTIONS" ] || OPTIONS="-D /var/lib/pgsql -s" 1.9 +[ -n "$INIT_OPTIONS" ] || INIT_OPTIONS="--no-locale --encoding=SQL_ASCII -D /var/lib/pgsql" 1.10 1.11 case "$1" in 1.12 start) 1.13 if [ ! -f /var/lib/pgsql/PG_VERSION ]; then 1.14 echo "Initializing $DESC database" 1.15 rm -rf /var/lib/pgsql/* 2> /dev/null 1.16 - su -c "initdb -D /var/lib/pgsql" - postgres 1.17 + su -c "initdb $INIT_OPTIONS" - postgres 1.18 fi 1.19 echo -n "Starting $DESC: $NAME... " 1.20 su -c "pg_ctl start -w $OPTIONS -l /var/log/postgresql/postgresql.log" - postgres