aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index e5b12768992..0595cece4f8 100644
--- a/cron.php
+++ b/cron.php
@@ -58,6 +58,9 @@ try {
}
if (OC::$CLI) {
+ // set to run indefinitely if needed
+ set_time_limit(0);
+
$config = OC::$server->getConfig();
$instanceId = $config->getSystemValue('instanceid');
$lockFileName = 'owncloud-server-' . $instanceId . '-cron.lock';