[Fusionforge-commits] r8944 - in trunk/gforge/debian: . dsf-in

Christian Bayle cbayle at libremir.placard.fr.eu.org
Thu Mar 4 16:50:51 CET 2010


Author: cbayle
Date: 2010-03-04 16:50:50 +0100 (Thu, 04 Mar 2010)
New Revision: 8944

Modified:
   trunk/gforge/debian/dsf-in/plugin-extratabs.postinst
   trunk/gforge/debian/dsf-in/plugin-globalsearch.postinst
   trunk/gforge/debian/dsf-in/plugin-mediawiki.postinst
   trunk/gforge/debian/dsf-in/plugin-projectlabels.postinst
   trunk/gforge/debian/gforge-plugin-contribtracker.postinst
Log:
Run db-upgrade.pl and register-plugin scripts as gforge @OLDPACKAGE@ user
to enable install by auto installer


Modified: trunk/gforge/debian/dsf-in/plugin-extratabs.postinst
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-extratabs.postinst	2010-03-04 10:30:46 UTC (rev 8943)
+++ trunk/gforge/debian/dsf-in/plugin-extratabs.postinst	2010-03-04 15:50:50 UTC (rev 8944)
@@ -25,8 +25,8 @@
 
 case "$1" in
     configure)
-        /usr/share/@OLDPACKAGE@/plugins/extratabs/bin/db-upgrade.pl
-        /usr/share/@OLDPACKAGE@/bin/register-plugin extratabs "Extra Tabs"
+        su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/plugins/extratabs/bin/db-upgrade.pl'
+        su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin extratabs "Extra Tabs"'
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Modified: trunk/gforge/debian/dsf-in/plugin-globalsearch.postinst
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-globalsearch.postinst	2010-03-04 10:30:46 UTC (rev 8943)
+++ trunk/gforge/debian/dsf-in/plugin-globalsearch.postinst	2010-03-04 15:50:50 UTC (rev 8944)
@@ -25,8 +25,8 @@
 
 case "$1" in
     configure)
-        /usr/share/@OLDPACKAGE@/plugins/globalsearch/bin/db-upgrade.pl
-        /usr/share/@OLDPACKAGE@/bin/register-plugin globalsearch "Global Search"
+        su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/plugins/globalsearch/bin/db-upgrade.pl'
+        su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin globalsearch "Global Search"'
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Modified: trunk/gforge/debian/dsf-in/plugin-mediawiki.postinst
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-mediawiki.postinst	2010-03-04 10:30:46 UTC (rev 8943)
+++ trunk/gforge/debian/dsf-in/plugin-mediawiki.postinst	2010-03-04 15:50:50 UTC (rev 8944)
@@ -25,7 +25,7 @@
 
 case "$1" in
     configure)
-	/usr/share/@OLDPACKAGE@/bin/register-plugin mediawiki "Mediawiki"
+	su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin mediawiki "Mediawiki"'
 	@OLDPACKAGE at -config
 	for flavour in apache apache-perl apache-ssl apache2 ; do
 	    if [ -x /usr/sbin/$flavour ]; then

Modified: trunk/gforge/debian/dsf-in/plugin-projectlabels.postinst
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-projectlabels.postinst	2010-03-04 10:30:46 UTC (rev 8943)
+++ trunk/gforge/debian/dsf-in/plugin-projectlabels.postinst	2010-03-04 15:50:50 UTC (rev 8944)
@@ -25,8 +25,8 @@
 
 case "$1" in
     configure)
-        /usr/share/@OLDPACKAGE@/plugins/projectlabels/bin/db-upgrade.pl
-        /usr/share/@OLDPACKAGE@/bin/register-plugin projectlabels "Project Labels"
+        su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/plugins/projectlabels/bin/db-upgrade.pl'
+        su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin projectlabels "Project Labels"'
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Modified: trunk/gforge/debian/gforge-plugin-contribtracker.postinst
===================================================================
--- trunk/gforge/debian/gforge-plugin-contribtracker.postinst	2010-03-04 10:30:46 UTC (rev 8943)
+++ trunk/gforge/debian/gforge-plugin-contribtracker.postinst	2010-03-04 15:50:50 UTC (rev 8944)
@@ -25,8 +25,8 @@
 
 case "$1" in
     configure)
-        /usr/share/gforge/plugins/contribtracker/bin/db-upgrade.pl
-        /usr/share/gforge/bin/register-plugin contribtracker "Contribution Tracker"
+        su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/gforge/plugins/contribtracker/bin/db-upgrade.pl'
+        su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/gforge/bin/register-plugin contribtracker "Contribution Tracker"'
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)




More information about the Fusionforge-commits mailing list