[Pkg-tcltk-commits] r1134 - dotlrn/trunk/debian

geox-guest at alioth.debian.org geox-guest at alioth.debian.org
Wed Apr 6 14:12:38 UTC 2011


Author: geox-guest
Date: 2011-04-06 14:12:29 +0000 (Wed, 06 Apr 2011)
New Revision: 1134

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



Modified: dotlrn/trunk/debian/changelog
===================================================================
--- dotlrn/trunk/debian/changelog	2011-04-06 14:08:11 UTC (rev 1133)
+++ dotlrn/trunk/debian/changelog	2011-04-06 14:12:29 UTC (rev 1134)
@@ -1,3 +1,9 @@
+dotlrn (2.5.0+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:58:48 +0200
+
 dotlrn (2.5.0+dfsg-3) unstable; urgency=low
 
   * Policy bumped to 3.9.1 without changes.

Modified: dotlrn/trunk/debian/postinst
===================================================================
--- dotlrn/trunk/debian/postinst	2011-04-06 14:08:11 UTC (rev 1133)
+++ dotlrn/trunk/debian/postinst	2011-04-06 14:12:29 UTC (rev 1134)
@@ -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