[evolvis-commits] r12274: Reload database configuration before trying to access it

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 01:32:33 CET 2011


Author: mirabilos
Date: 2011-02-28 01:32:33 +0100 (Mon, 28 Feb 2011)
New Revision: 12274

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/deb-specific/install-db.sh
Log:
Reload database configuration before trying to access it

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/deb-specific/install-db.sh
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/deb-specific/install-db.sh	2011-02-28 00:32:31 UTC (rev 12273)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/deb-specific/install-db.sh	2011-02-28 00:32:33 UTC (rev 12274)
@@ -183,6 +183,9 @@
 	 	echo "No way found to enable plpgsql on $db_name here" 
 	fi
 
+	# Make sure the database accepts connections from these new users
+	pg_name=postgresql-$pg_version
+	invoke-rc.d ${pg_name} reload
 	# Install/upgrade the database contents (tables and data)
 	su -s /bin/sh gforge -c /usr/lib/gforge/bin/db-upgrade.pl 2>&1  | grep -v ^NOTICE:
 	p=${PIPESTATUS[0]}



More information about the evolvis-commits mailing list