mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
Merge pull request #9815 from owncloud/update-preventupdatethroughcron
Prevent cron.php to trigger apps updating
This commit is contained in:
commit
4c99869e1f
1 changed files with 5 additions and 0 deletions
5
cron.php
5
cron.php
|
|
@ -48,6 +48,11 @@ try {
|
|||
|
||||
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
|
||||
OC_App::loadApps();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue