[Fusionforge-commits] FusionForge branch master updated. 3ed75c3d5b348c8eb5d4d6ee7c6358ad174c395d

Franck VILLAUME nerville at fusionforge.org
Sun May 5 20:28:21 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, master has been updated
       via  3ed75c3d5b348c8eb5d4d6ee7c6358ad174c395d (commit)
      from  e562fe893ee27065bd941f54d5500da401ad135a (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 3ed75c3d5b348c8eb5d4d6ee7c6358ad174c395d
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun May 5 20:27:55 2013 +0200

    patch #503: check if homedir exists before trying to create ssh key

diff --git a/src/plugins/scmcvs/cronjobs/ssh_create.php b/src/plugins/scmcvs/cronjobs/ssh_create.php
index bd9d7d1..a9844a5 100755
--- a/src/plugins/scmcvs/cronjobs/ssh_create.php
+++ b/src/plugins/scmcvs/cronjobs/ssh_create.php
@@ -6,6 +6,7 @@
  * The rest Copyright 2002-2005 (c) GForge Team
  * Copyright (C) 2009  Sylvain Beucler
  * Copyright 2012, Franck Villaume - TrivialDev
+ * Copyright 2013, Xavier Le Boëc
  * http://fusionforge.org/
  *
  * This file is part of FusionForge.
@@ -66,7 +67,12 @@ foreach ($keys as $username => $v) {
 
 	$dir = forge_get_config('homedir_prefix').'/'.$username;
 	if (util_is_root_dir($dir)) {
-		$err .= "Error! homedir_prefix/username Points To Root Directory!";
+		$err .= _('Error: homedir_prefix/username points to root directory!');
+		continue;
+	}
+
+	if(!is_dir($dir)){
+		$err .=  sprintf(_('Error! homedirs.php hasn\'t created a home directory for user %s'), $username);
 		continue;
 	}
 
@@ -78,5 +84,3 @@ foreach ($keys as $username => $v) {
 }
 
 cron_entry(15,$err);
-
-?>

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

Summary of changes:
 src/plugins/scmcvs/cronjobs/ssh_create.php |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list