# HG changeset patch # User Pascal Bellard # Date 1226151390 0 # Node ID df0ba7a1b7e1135a7770e72e8ed1a2821ae79e8f # Parent 3febe9607730a833966c05ba2f948c5678d6f0b3 postgresql: no locale by default diff -r 3febe9607730 -r df0ba7a1b7e1 postgresql/stuff/etc/init.d/postgresql --- a/postgresql/stuff/etc/init.d/postgresql Sat Nov 08 13:35:35 2008 +0000 +++ b/postgresql/stuff/etc/init.d/postgresql Sat Nov 08 13:36:30 2008 +0000 @@ -11,14 +11,16 @@ NAME=Postgresql DESC="PostgreSQL server" OPTIONS=$PGSQL_OPTIONS +INIT_OPTIONS=$PGSQLINIT_OPTIONS [ -n "$OPTIONS" ] || OPTIONS="-D /var/lib/pgsql -s" +[ -n "$INIT_OPTIONS" ] || INIT_OPTIONS="--no-locale --encoding=SQL_ASCII -D /var/lib/pgsql" case "$1" in start) if [ ! -f /var/lib/pgsql/PG_VERSION ]; then echo "Initializing $DESC database" rm -rf /var/lib/pgsql/* 2> /dev/null - su -c "initdb -D /var/lib/pgsql" - postgres + su -c "initdb $INIT_OPTIONS" - postgres fi echo -n "Starting $DESC: $NAME... " su -c "pg_ctl start -w $OPTIONS -l /var/log/postgresql/postgresql.log" - postgres