[Fusionforge-commits] r9504 - in trunk/plugins/coclico/mailman: bin debian/dsf-in

Christian Bayle cbayle at libremir.placard.fr.eu.org
Fri Apr 16 11:28:36 CEST 2010


Author: cbayle
Date: 2010-04-16 11:28:35 +0200 (Fri, 16 Apr 2010)
New Revision: 9504

Modified:
   trunk/plugins/coclico/mailman/bin/db-upgrade.pl
   trunk/plugins/coclico/mailman/debian/dsf-in/plugin-mailman.postinst
Log:
add db-upgrade in postinst


Modified: trunk/plugins/coclico/mailman/bin/db-upgrade.pl
===================================================================
--- trunk/plugins/coclico/mailman/bin/db-upgrade.pl	2010-04-16 09:23:34 UTC (rev 9503)
+++ trunk/plugins/coclico/mailman/bin/db-upgrade.pl	2010-04-16 09:28:35 UTC (rev 9504)
@@ -69,32 +69,32 @@
 	$dbh->commit () ;
     }
     
-    $version = &get_db_version ;
-    $target = "0.2" ;
-    if (is_lesser $version, $target) {
-	debug "Adding local data." ;
-	
-	do "/etc/gforge/local.pl" or die "Cannot read /etc/gforge/local.pl" ;
-	
-	my $ip_address = qx/host $domain_name | awk '{print \}'/ ;
-	
-	@reqlist = (
-		    "INSERT INTO plugin_".$pluginname."_sample_data (domain, ip_address) VALUES ('$domain_name', '$ip_address')",
-		    ) ;
-	
-	foreach my $s (@reqlist) {
-	    $query = $s ;
-	    # debug $query ;
-	    $sth = $dbh->prepare ($query) ;
-	    $sth->execute () ;
-	    $sth->finish () ;
-	}
-	@reqlist = () ;
-	
-	&update_db_version ($target) ;
-	debug "Committing." ;
-	$dbh->commit () ;
-    }
+#    $version = &get_db_version ;
+#    $target = "0.2" ;
+#    if (is_lesser $version, $target) {
+#	debug "Adding local data." ;
+#	
+#	do "/etc/gforge/local.pl" or die "Cannot read /etc/gforge/local.pl" ;
+#	
+#	my $ip_address = qx/host $domain_name | awk '{print \}'/ ;
+#	
+#	@reqlist = (
+#		    "INSERT INTO plugin_".$pluginname."_sample_data (domain, ip_address) VALUES ('$domain_name', '$ip_address')",
+#		    ) ;
+#	
+#	foreach my $s (@reqlist) {
+#	    $query = $s ;
+#	    # debug $query ;
+#	    $sth = $dbh->prepare ($query) ;
+#	    $sth->execute () ;
+#	    $sth->finish () ;
+#	}
+#	@reqlist = () ;
+#	
+#	&update_db_version ($target) ;
+#	debug "Committing." ;
+#	$dbh->commit () ;
+#    }
 
     debug "It seems your database install/upgrade went well and smoothly.  That's cool." ;
     debug "Please enjoy using Debian FusionForge." ;

Modified: trunk/plugins/coclico/mailman/debian/dsf-in/plugin-mailman.postinst
===================================================================
--- trunk/plugins/coclico/mailman/debian/dsf-in/plugin-mailman.postinst	2010-04-16 09:23:34 UTC (rev 9503)
+++ trunk/plugins/coclico/mailman/debian/dsf-in/plugin-mailman.postinst	2010-04-16 09:28:35 UTC (rev 9504)
@@ -30,6 +30,7 @@
 	# Prepare database
 	su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin mailman "mailman"'
 	chgrp list /var/lib/mailman/lists/extend.py 
+	/usr/share/gforge/plugins/mailman/bin/db-upgrade.pl
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)




More information about the Fusionforge-commits mailing list