Skip to content
Snippets Groups Projects
Commit 0de81f9d authored by Jakob Sack's avatar Jakob Sack
Browse files

Backgroundjobs: don't execute cron.php if owncloud has not been installed

parent 0ea4fa29
Branches
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment