fix bug
This commit is contained in:
parent
d0bbd9416b
commit
22dcd3b6a6
4
cron.php
4
cron.php
|
@ -57,7 +57,7 @@ if( !OC_Config::getValue( 'installed', false )) {
|
||||||
register_shutdown_function('handleUnexpectedShutdown');
|
register_shutdown_function('handleUnexpectedShutdown');
|
||||||
|
|
||||||
// Exit if background jobs are disabled!
|
// Exit if background jobs are disabled!
|
||||||
$appmode = OC_BackgroundJob::getType();
|
$appmode = OC_BackgroundJob::getExecutionType();
|
||||||
if( $appmode == 'none' ) {
|
if( $appmode == 'none' ) {
|
||||||
my_temporary_cron_class::$sent = true;
|
my_temporary_cron_class::$sent = true;
|
||||||
if( OC::$CLI ) {
|
if( OC::$CLI ) {
|
||||||
|
@ -76,7 +76,7 @@ if( OC::$CLI ) {
|
||||||
// We call ownCloud from the CLI (aka cron)
|
// We call ownCloud from the CLI (aka cron)
|
||||||
if( $appmode != 'cron' ) {
|
if( $appmode != 'cron' ) {
|
||||||
// Use cron in feature!
|
// Use cron in feature!
|
||||||
OC_BackgroundJob::setType('cron' );
|
OC_BackgroundJob::setExecutionType('cron' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if backgroundjobs is still running
|
// check if backgroundjobs is still running
|
||||||
|
|
Loading…
Reference in New Issue