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_3 has been updated
via 3eacac39bef39afbaaa877a60f8d73d6a94a1641 (commit)
from 0050e771296834adbc54dbfcc105f3edd8d20fc3 (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 3eacac39bef39afbaaa877a60f8d73d6a94a1641
Author: Sylvain Beucler <[email protected]>
Date: Thu May 22 17:11:06 2014 +0200
forge_run_job: don't require DB connection (more efficient and useful if
you're running with a restricted pgsql account)
diff --git a/src/utils/forge_run_job b/src/utils/forge_run_job
index a96970f..dea5b6e 100755
--- a/src/utils/forge_run_job
+++ b/src/utils/forge_run_job
@@ -22,6 +22,9 @@
* with FusionForge; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
+// Don't try to connect to the DB, just spawning a cronjob
+putenv('FUSIONFORGE_NO_DB=true');
require (dirname(__FILE__).'/../common/include/env.inc.php');
require_once $gfcommon.'include/pre.php';
@@ -63,6 +66,10 @@ $cmdline = $script;
while ($arg = array_shift($argv)) {
$cmdline .= ' '.escapeshellarg($arg);
}
+
+// Clean-up env
+putenv('FUSIONFORGE_NO_DB');
+putenv('FUSIONFORGE_NO_PLUGINS');
system ("$cmdline\n");
-----------------------------------------------------------------------
Summary of changes:
src/utils/forge_run_job | 7 +++++++
1 file changed, 7 insertions(+)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits