Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-09 12:40:39 +0400
committerJakob Sack <mail@jakobsack.de>2012-08-09 12:40:39 +0400
commit889f0a1c6df51c5b6495445809143940ad17c327 (patch)
tree781c669103ec831eee24bcceee91afe2c32c0e91 /cron.php
parent37ee88aa6d6470bdb0e500fc94fe75042453fbb7 (diff)
rename appconfig keys for backgroundjobs
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/cron.php b/cron.php
index 2bcaaff9fd9..9d7e396d61e 100644
--- a/cron.php
+++ b/cron.php
@@ -23,19 +23,19 @@
$RUNTIME_NOSETUPFS = true;
require_once('lib/base.php');
-$appmode = OC_Appconfig::getValue( 'core', 'backgroundjob_mode', 'ajax' );
+$appmode = OC_Appconfig::getValue( 'core', 'backgroundjobs_mode', 'ajax' );
if( OC::$CLI ){
if( $appmode != 'cron' ){
- OC_Appconfig::setValue( 'core', 'backgroundjob_mode', 'cron' );
+ OC_Appconfig::setValue( 'core', 'backgroundjobs_mode', 'cron' );
}
// check if backgroundjobs is still running
- $pid = OC_Appconfig::getValue( 'core', 'backgroundjob_pid', false );
+ $pid = OC_Appconfig::getValue( 'core', 'backgroundjobs_pid', false );
if( $pid !== false ){
// FIXME: check if $pid is still alive (*nix/mswin). if so then exit
}
// save pid
- OC_Appconfig::setValue( 'core', 'backgroundjob_pid', getmypid());
+ OC_Appconfig::setValue( 'core', 'backgroundjobs_pid', getmypid());
// Work
OC_BackgroundJob_Worker::doAllSteps();