summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-11 01:09:12 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-11 01:09:12 +0100
commitb4cf6e62bf4e66266a5101a45de69e1420fdb161 (patch)
tree33ac73c2150d478a31371872f78aff93d3e97a0b /cron.php
parent1757d01604c311f9494a61f9bed87c3fae8c6fe9 (diff)
downloadnextcloud-server-b4cf6e62bf4e66266a5101a45de69e1420fdb161.tar.gz
nextcloud-server-b4cf6e62bf4e66266a5101a45de69e1420fdb161.zip
cron.php on cli has no time limitation - fixes #14481
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';