[Fusionforge-commits] r14375 - in trunk/src/plugins/mediawiki: . bin

Christian Bayle cbayle at fusionforge.org
Wed Sep 14 15:39:31 CEST 2011


Author: cbayle
Date: 2011-09-14 15:39:31 +0200 (Wed, 14 Sep 2011)
New Revision: 14375

Modified:
   trunk/src/plugins/mediawiki/README.codendi
   trunk/src/plugins/mediawiki/bin/create_links.sh
Log:
Fix for Codendi support


Modified: trunk/src/plugins/mediawiki/README.codendi
===================================================================
--- trunk/src/plugins/mediawiki/README.codendi	2011-09-14 12:01:20 UTC (rev 14374)
+++ trunk/src/plugins/mediawiki/README.codendi	2011-09-14 13:39:31 UTC (rev 14375)
@@ -7,6 +7,17 @@
 # create view group_plugin as (select service.service_id group_plugin_id,service.group_id,plugin.id plugin_id,service.short_name from service,plugin where service.short_name=plugin.name and service.is_active=1 and service.is_used=1 and service.group_id != 100);
 # create view plugins as (select id plugin_id, name plugin_name, name plugin_desc from plugin );
 #
+# modify /etc/httpd/conf.d/codendi_aliases.conf to add plugin-mediawiki.inc
+# add conf param in local.inc
+#// Mediawiki
+#$master_path = "/var/lib/codendi/plugins/mediawiki/master" ;
+#$mwdata_path = "/var/lib/codendi/plugins/mediawiki";
+#$mw_dbtype = "mysql";
+#$projects_path = "/var/lib/codendi/plugins/mediawiki/projects";
+#$config_path = "/etc/codendi";
+#$src_path = "/usr/share/mediawiki115";
+# call bin/create_links.sh
+
 FFDIR=/usr/share/codendi
 MWCRON=/usr/share/codendi/plugins/mediawiki/cronjobs
 FFUSER=gforge

Modified: trunk/src/plugins/mediawiki/bin/create_links.sh
===================================================================
--- trunk/src/plugins/mediawiki/bin/create_links.sh	2011-09-14 12:01:20 UTC (rev 14374)
+++ trunk/src/plugins/mediawiki/bin/create_links.sh	2011-09-14 13:39:31 UTC (rev 14375)
@@ -4,8 +4,15 @@
 absolutedir=`cd $scriptdir;pwd`
 plugindir=`dirname $absolutedir`
 
+if [ -e /usr/share/codendi ]
+then 
+	OLDPACKAGE=codendi
+else
+	OLDPACKAGE=gforge
+fi
+
 LINKS=$plugindir/packaging/links/plugin-mediawiki
-cat $LINKS | while read src dest
+cat $LINKS | sed "s/@OLDPACKAGE@/$OLDPACKAGE/g" | while read src dest
 do
 	if [ ! -e /$src ]
 	then




More information about the Fusionforge-commits mailing list