diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-09 01:02:05 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-09 01:02:05 +0200 |
commit | 13a0818fec4ac758fb050764fb33d90c74200cfe (patch) | |
tree | cf66f2a014063bdec85e3177a0b8f068898f9e0d /cron.php | |
parent | 7fa896971ffaac5daa5efd7408f58c67ec56f493 (diff) | |
download | nextcloud-server-13a0818fec4ac758fb050764fb33d90c74200cfe.tar.gz nextcloud-server-13a0818fec4ac758fb050764fb33d90c74200cfe.zip |
Be more precise regarding backgroundjobs mode
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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(); } |