summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-09 01:02:05 +0200
committerJakob Sack <mail@jakobsack.de>2012-08-09 01:02:05 +0200
commit13a0818fec4ac758fb050764fb33d90c74200cfe (patch)
treecf66f2a014063bdec85e3177a0b8f068898f9e0d /cron.php
parent7fa896971ffaac5daa5efd7408f58c67ec56f493 (diff)
downloadnextcloud-server-13a0818fec4ac758fb050764fb33d90c74200cfe.tar.gz
nextcloud-server-13a0818fec4ac758fb050764fb33d90c74200cfe.zip
Be more precise regarding backgroundjobs mode
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/cron.php b/cron.php
index fd46174f2bd..2bcaaff9fd9 100644
--- a/cron.php
+++ b/cron.php
@@ -23,9 +23,9 @@
$RUNTIME_NOSETUPFS = true;
require_once('lib/base.php');
-$appmode = OC_Appconfig::getValue( 'core', 'backgroundjob_mode', 'web' );
+$appmode = OC_Appconfig::getValue( 'core', 'backgroundjob_mode', 'ajax' );
if( OC::$CLI ){
- if( $appmode == 'web' ){
+ if( $appmode != 'cron' ){
OC_Appconfig::setValue( 'core', 'backgroundjob_mode', 'cron' );
}
@@ -41,7 +41,7 @@ if( OC::$CLI ){
OC_BackgroundJob_Worker::doAllSteps();
}
else{
- if( $appmode == 'web' ){
+ if( $appmode == 'cron' ){
OC_JSON::error( array( 'data' => array( 'message' => 'Backgroundjobs are using system cron!')));
exit();
}