[Fusionforge-commits] r10493 - branches/Branch_5_0/gforge/deb-specific
Roland Mas
lolando at libremir.placard.fr.eu.org
Thu Sep 16 10:14:20 CEST 2010
Author: lolando
Date: 2010-09-16 10:14:20 +0200 (Thu, 16 Sep 2010)
New Revision: 10493
Modified:
branches/Branch_5_0/gforge/deb-specific/install-db.sh
Log:
Fix database creation problems in case of an SQL_ASCII default for PostgreSQL
Modified: branches/Branch_5_0/gforge/deb-specific/install-db.sh
===================================================================
--- branches/Branch_5_0/gforge/deb-specific/install-db.sh 2010-09-16 07:47:49 UTC (rev 10492)
+++ branches/Branch_5_0/gforge/deb-specific/install-db.sh 2010-09-16 08:14:20 UTC (rev 10493)
@@ -190,7 +190,7 @@
if su -s /bin/sh postgres -c "/usr/bin/psql template1" 1> $tmp1 2> $tmp2 <<EOF \
&& [ "$(tail -n +2 $tmp1 | head -1)" = 'CREATE DATABASE' ] ;
SET LC_MESSAGES = 'C' ;
-CREATE DATABASE $db_name WITH ENCODING 'UNICODE';
+CREATE DATABASE $db_name WITH TEMPLATE template0 ENCODING 'UNICODE';
EOF
then
# Creation OK
More information about the Fusionforge-commits
mailing list