[Pkg-tcltk-commits] r1132 - openacs/trunk/debian

geox-guest at alioth.debian.org geox-guest at alioth.debian.org
Wed Apr 6 14:07:35 UTC 2011


Author: geox-guest
Date: 2011-04-06 14:07:34 +0000 (Wed, 06 Apr 2011)
New Revision: 1132

Modified:
   openacs/trunk/debian/changelog
   openacs/trunk/debian/postinst
Log:
Fixed piuparts failed-testing error in postinst script



Modified: openacs/trunk/debian/changelog
===================================================================
--- openacs/trunk/debian/changelog	2011-03-03 19:45:45 UTC (rev 1131)
+++ openacs/trunk/debian/changelog	2011-04-06 14:07:34 UTC (rev 1132)
@@ -1,3 +1,9 @@
+openacs (5.5.1+dfsg-4) unstable; urgency=low
+
+  * Fixed piuparts failed-testing error in postinst script 
+
+ -- Hector Romojaro <hromojaro at dia.uned.es>  Wed, 06 Apr 2011 06:44:04 +0200
+
 openacs (5.5.1+dfsg-3) unstable; urgency=low
 
   * Policy bumped to 3.9.1 without changes.

Modified: openacs/trunk/debian/postinst
===================================================================
--- openacs/trunk/debian/postinst	2011-03-03 19:45:45 UTC (rev 1131)
+++ openacs/trunk/debian/postinst	2011-04-06 14:07:34 UTC (rev 1132)
@@ -95,8 +95,10 @@
         dbpass=$dbu_password
 	
 	# is the database server available? Then create the user.
-        . /usr/share/wwwconfig-common/pgsql-createuser.sh > /dev/null
-        if [ "$status" = "error" ]
+	dbuser=$dba_name
+	dbpass=$dba_password
+	. /usr/share/wwwconfig-common/pgsql.get
+	if  [ "A$($pgsqlcmd -c "SELECT usename from pg_user;" )" = "A" ]
         then
                 err=1
                 echo "* Error trying to connect to Postgresql server."
@@ -105,6 +107,9 @@
                         echo "(TIP: is the postgresql package installed?)"
                 fi
         else
+		dbuser=$dbu_name
+		dbpass=$dbu_password
+		. /usr/share/wwwconfig-common/pgsql-createuser.sh
 		. /usr/share/wwwconfig-common/pgsql-createdb.sh
 		if [ "$status" = "error" ]
 		then




More information about the Pkg-tcltk-commits mailing list