diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-10 14:03:26 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-10 14:03:26 +0200 |
commit | 0de81f9dad5bfba01f01d468eb0fd1f452354792 (patch) | |
tree | ea71eceddd14135dda83086ecaf4ee0ffa042d7a | |
parent | 0ea4fa298c20a1cb25223b2bcaa5152c7a0f52dd (diff) | |
download | nextcloud-server-0de81f9dad5bfba01f01d468eb0fd1f452354792.tar.gz nextcloud-server-0de81f9dad5bfba01f01d468eb0fd1f452354792.zip |
Backgroundjobs: don't execute cron.php if owncloud has not been installed
-rw-r--r-- | cron.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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'); |