console commands shall not be limited with respect to execution time - fixes #14156

This commit is contained in:
Thomas Müller 2015-02-16 09:16:32 +01:00
parent 786ff6a5a3
commit 036a8e3c1f
1 changed files with 3 additions and 0 deletions

View 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;