Prevent cron.php to trigger apps updating
This commit is contained in:
parent
9834e38542
commit
547927bdd2
5
cron.php
5
cron.php
|
@ -48,6 +48,11 @@ try {
|
||||||
|
|
||||||
require_once 'lib/base.php';
|
require_once 'lib/base.php';
|
||||||
|
|
||||||
|
if (\OCP\Util::needUpgrade()) {
|
||||||
|
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG);
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
// load all apps to get all api routes properly setup
|
// load all apps to get all api routes properly setup
|
||||||
OC_App::loadApps();
|
OC_App::loadApps();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue