[evolvis-commits] r6536: enable wiki file uploads by default↵

Thorsten Glaser t.glaser at tarent.de
Wed Apr 14 14:28:45 CEST 2010


Author: Thorsten Glaser <t.glaser at tarent.de>
Date: 2010-04-14 14:28:44 +0200 (Wed, 14 Apr 2010)
New Revision: 6536

Modified:
   trunk/gforge_base/evolvisforge/gforge/debian/changelog
   trunk/gforge_base/evolvisforge/gforge/plugins/mediawiki/cronjobs/create-wikis.sh
Log:
enable wiki file uploads by default


Modified: trunk/gforge_base/evolvisforge/gforge/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/debian/changelog	2010-04-14 12:24:35 UTC (rev 6535)
+++ trunk/gforge_base/evolvisforge/gforge/debian/changelog	2010-04-14 12:28:44 UTC (rev 6536)
@@ -1,3 +1,9 @@
+gforge (4.8.3+evolvis5) xunstable; urgency=low
+
+  * gf-p-mediawiki: default to enabling file uploads; [TTID# 1003495]
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Wed, 14 Apr 2010 14:27:15 +0200
+
 gforge (4.8.3+evolvis4) unstable; urgency=low
 
   [ Roland Mas ]

Modified: trunk/gforge_base/evolvisforge/gforge/plugins/mediawiki/cronjobs/create-wikis.sh
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/plugins/mediawiki/cronjobs/create-wikis.sh	2010-04-14 12:24:35 UTC (rev 6535)
+++ trunk/gforge_base/evolvisforge/gforge/plugins/mediawiki/cronjobs/create-wikis.sh	2010-04-14 12:28:44 UTC (rev 6536)
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+default_uploads=true
+
 tmp3=$(mktemp)
 perl -e'require "/etc/gforge/local.pl"; print "*:*:$sys_dbname:$sys_dbuser:$sys_dbpasswd\n"' > $tmp3
 
@@ -14,11 +16,16 @@
     if [ ! -d $wdprefix/$project/images ] ; then
 	mkdir -p $wdprefix/$project/images
     fi
+    if [ x"$default_uploads" = x"true" ] ; then
+	chown www-data $wdprefix/$project/images
+    else
+	default_uploads=false
+    fi
     if [ ! -e $wdprefix/$project/LocalSettings.php ] ; then
 	cat > $wdprefix/$project/LocalSettings.php <<EOF
 <?php
 // To enable uploads for the wiki, you'll need to edit this value:
-\$wgEnableUploads = false;
+\$wgEnableUploads = $default_uploads;
 // Don't forget to "chown www-data $wdprefix/$project/images"
 
 // These are per-project settings. The global settings can be




More information about the evolvis-commits mailing list