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 c34d7dd1ace54fc4d4e593d24e63cc9bbd8248f1 (commit)
from 949d6ca18c6ef021934aab6aed9a2d09dc6f1055 (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=c34d7dd1ace54fc4d4e593d24e63cc9bbd8248f1
commit c34d7dd1ace54fc4d4e593d24e63cc9bbd8248f1
Author: Franck Villaume <[email protected]>
Date: Thu Jul 13 12:27:26 2017 +0000
missing require, fix path and comment echo command
diff --git a/src/cronjobs/ftp/ftp_create_group_access.php
b/src/cronjobs/ftp/ftp_create_group_access.php
index 18dcf23..51a4c92 100755
--- a/src/cronjobs/ftp/ftp_create_group_access.php
+++ b/src/cronjobs/ftp/ftp_create_group_access.php
@@ -21,6 +21,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+require dirname(__FILE__).'/../../common/include/env.inc.php';
require_once $gfcommon.'include/pre.php';
require $gfcommon.'include/cron_utils.php';
@@ -39,7 +40,7 @@ if ($res_db) {
foreach ($users as $u) {
$dir = $home_dir.'/'.$u->getUnixName().'/pub';
- if (is_dir("$home_dir".$u->getUnixName())) {
+ if (is_dir($home_dir.'/'.$u->getUnixName())) {
foreach ($u->getGroups() as $project) {
$g = $project->getUnixName();
if (is_dir($ftp_dir.'/'.$g)) {
@@ -57,7 +58,7 @@ foreach ($users as $u) {
$res = execute($cmd);
$cmd = '/bin/mount --bind '.$ftp_dir.'/'.$g.'
'.$dir.'/'.$g;
$res = execute($cmd);
- echo 'allow '.$u->getUnixName().' to access at
'.$dir.'/'.$g."\n";
+ //echo 'allow '.$u->getUnixName().' to access
at '.$dir.'/'.$g."\n";
}
}
}
-----------------------------------------------------------------------
Summary of changes:
src/cronjobs/ftp/ftp_create_group_access.php | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits