1 |
--- smeserver-moodle-1.0/root/etc/e-smith/templates/etc/crontab/30moodle.cronstatus 2008-10-10 10:28:00.000000000 +1100 |
2 |
+++ smeserver-moodle-1.0/root/etc/e-smith/templates/etc/crontab/30moodle 2008-10-10 10:30:56.000000000 +1100 |
3 |
@@ -3,6 +3,10 @@ |
4 |
return "# moodle is disabled \n" |
5 |
unless $status eq 'enabled'; |
6 |
|
7 |
+ my $cron = $moodle{'cron'} || "enabled"; |
8 |
+ return "# moodle cron job is disabled \n" |
9 |
+ unless $cron eq 'enabled'; |
10 |
+ |
11 |
$OUT = ""; |
12 |
$OUT .= "# moodle called each 5 minutes\n"; |
13 |
$OUT .= "*/5 * * * * root /usr/bin/php /opt/moodle/html/admin/cron.php >/dev/null\n"; |