[Fusionforge-commits] r15551 - in branches/Branch_5_1: . src/plugins/mediawiki/debian

Roland Mas lolando at fusionforge.org
Wed May 23 12:04:59 CEST 2012


Author: lolando
Date: 2012-05-23 12:04:58 +0200 (Wed, 23 May 2012)
New Revision: 15551

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/plugins/mediawiki/debian/plugin-mediawiki.postinst
Log:
Fixed postinst for mediawiki upgrading

Modified: branches/Branch_5_1/src/plugins/mediawiki/debian/plugin-mediawiki.postinst
===================================================================
--- branches/Branch_5_1/src/plugins/mediawiki/debian/plugin-mediawiki.postinst	2012-05-23 09:52:32 UTC (rev 15550)
+++ branches/Branch_5_1/src/plugins/mediawiki/debian/plugin-mediawiki.postinst	2012-05-23 10:04:58 UTC (rev 15551)
@@ -3,17 +3,24 @@
 
 set -e
 
+upgrade_mediawikis () {
+    # Upgrade Mediawiki database schemas
+    /usr/share/gforge/bin/list-projects-using-plugin.php mediawiki | while read i ; do
+	/usr/share/gforge/plugins/mediawiki/bin/mw-wrapper.php $i update.php
+    done
+}
+
 case "$1" in
-    triggered|configure)
+    triggered)
 	if [ "$2" = /usr/share/mediawiki/maintenance/postgres ] ; then
-	    # Upgrade Mediawiki database schemas
-	    /usr/share/gforge/bin/list-projects-using-plugin.php mediawiki | while read i ; do
-		/usr/share/gforge/plugins/mediawiki/bin/mw-wrapper.php $i update.php
-	    done
-
+	    upgrade_mediawikis
 	fi
 	;;
     
+    configure)
+	upgrade_mediawikis
+	;;
+    
     abort-upgrade|abort-remove|abort-deconfigure)
 	;;
 




More information about the Fusionforge-commits mailing list