]> source.dussan.org Git - nextcloud-server.git/commitdiff
console commands shall not be limited with respect to execution time - fixes #14156
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Feb 2015 08:16:32 +0000 (09:16 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Feb 2015 15:22:16 +0000 (16:22 +0100)
console.php

index 4b0adae539edc525cb441b06edb88369edb78221..337c0068967de92c363c4fc0249b0af5cab2359f 100644 (file)
@@ -11,6 +11,9 @@ use Symfony\Component\Console\Application;
 try {
        require_once 'lib/base.php';
 
+       // set to run indefinitely if needed
+       set_time_limit(0);
+
        // Don't do anything if ownCloud has not been installed yet
        if (!\OC::$server->getConfig()->getSystemValue('installed', false)) {
                echo "Console can only be used once ownCloud has been installed" . PHP_EOL;