mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
backup, disable cron when not enabled. closes https://github.com/opnsense/core/issues/3430
This commit is contained in:
parent
248156f8ee
commit
2e896d47b3
@ -201,7 +201,12 @@ function core_cron()
|
||||
}
|
||||
}
|
||||
|
||||
$jobs[]['autocron'] = array('configctl system remote backup', 0, 1);
|
||||
foreach ((new OPNsense\Backup\BackupFactory())->listProviders() as $classname => $provider) {
|
||||
if ($provider['handle']->isEnabled()) {
|
||||
$jobs[]['autocron'] = array('configctl system remote backup', 0, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return $jobs;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user