diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-09 10:40:39 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-09 10:40:39 +0200 |
commit | 889f0a1c6df51c5b6495445809143940ad17c327 (patch) | |
tree | 781c669103ec831eee24bcceee91afe2c32c0e91 /cron.php | |
parent | 37ee88aa6d6470bdb0e500fc94fe75042453fbb7 (diff) | |
download | nextcloud-server-889f0a1c6df51c5b6495445809143940ad17c327.tar.gz nextcloud-server-889f0a1c6df51c5b6495445809143940ad17c327.zip |
rename appconfig keys for backgroundjobs
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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(); |