mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Backgroundjobs: don't execute cron.php if owncloud has not been installed
This commit is contained in:
parent
0ea4fa298c
commit
0de81f9dad
1 changed files with 5 additions and 0 deletions
5
cron.php
5
cron.php
|
|
@ -39,6 +39,11 @@ function handleUnexpectedShutdown() {
|
|||
$RUNTIME_NOSETUPFS = true;
|
||||
require_once('lib/base.php');
|
||||
|
||||
// Don't do anything if ownCloud has not been installed
|
||||
if( !OC_Config::getValue( 'installed', false )){
|
||||
exit( 0 );
|
||||
}
|
||||
|
||||
// Handle unexpected errors
|
||||
register_shutdown_function('handleUnexpectedShutdown');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue