[Fusionforge-commits] FusionForge branch Branch_5_1 updated. 6ff4b83f504ce32865e12e9ae232caf7e11d2b35

Thorsten Glaser mirabilos at fusionforge.org
Thu May 23 12:39:03 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_1 has been updated
       via  6ff4b83f504ce32865e12e9ae232caf7e11d2b35 (commit)
      from  772c2c838dde4a5849dd311c4574c9f2271f30bf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6ff4b83f504ce32865e12e9ae232caf7e11d2b35
Author: Thorsten Glaser <t.glaser at tarent.de>
Date:   Thu May 23 12:38:32 2013 +0200

    the second argument to mkdir is *not* the file permbits afterwards
    
    instead, it’s the default value to use, before umask processing

diff --git a/src/plugins/mediawiki/bin/mw-plugin-init.php b/src/plugins/mediawiki/bin/mw-plugin-init.php
index 8453d9d..b4f80d6 100644
--- a/src/plugins/mediawiki/bin/mw-plugin-init.php
+++ b/src/plugins/mediawiki/bin/mw-plugin-init.php
@@ -37,11 +37,13 @@ $src_path = forge_get_config('src_path', 'mediawiki');
 if (!is_dir($projects_path)) {
 	echo "Creating $projects_path...\n";
 	mkdir($projects_path, 0755, true);
+	chmod($projects_path, 0755);
 }
 
 if (!is_dir($master_path)) {
 	echo "Creating $master_path...\n";
 	mkdir($master_path, 0755, true);
+	chmod($master_path, 0755);
 }
 
 function mysymlink($from, $to) {
diff --git a/src/plugins/mediawiki/cronjobs/create-wikis.php b/src/plugins/mediawiki/cronjobs/create-wikis.php
index ba2ef43..72f9463 100755
--- a/src/plugins/mediawiki/cronjobs/create-wikis.php
+++ b/src/plugins/mediawiki/cronjobs/create-wikis.php
@@ -126,6 +126,7 @@ while ( $row = db_fetch_array($project_res) ) {
 
 		cron_debug("  Creating project dir $project_dir.");
 		mkdir($project_dir, 0775, true);
+		chmod($project_dir, 0775);
 
 		$mwwrapper = forge_get_config('source_path')."/plugins/mediawiki/bin/mw-wrapper.php" ;
 		$dumpfile = forge_get_config('config_path')."/mediawiki/initial-content.xml" ;

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/mediawiki/bin/mw-plugin-init.php    |    2 ++
 src/plugins/mediawiki/cronjobs/create-wikis.php |    1 +
 2 files changed, 3 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list