protected function cron($cmd)
{
- system("/usr/bin/php -q /usr/share/gforge/$cmd");
+ $this->runCommand(RUN_JOB_PATH."forge_run_job $cmd");
+ }
+
+ protected function cron_for_plugin($cmd, $plugin)
+ {
+ $this->runCommand(RUN_JOB_PATH."forge_run_plugin_job $plugin $cmd");
}
protected function init() {
$this->init($project, $user);
// Run manually the cron for creating the svn structure.
- $this->cron("cronjobs/create_scm_repos.php");
+ $this->cron("create_scm_repos.php");
}
protected function login($username)