system: $config is unused in core.inc

This commit is contained in:
Franco Fichtner
2026-10-06 14:23:30 +02:00
parent 1f96bd4f6f
commit f76beb8ff0
-5
View File
@@ -288,8 +288,6 @@ function core_devices()
function core_cron()
{
global $config;
$jobs = [];
$jobs[]['autocron'] = ['/usr/local/sbin/configctl -d syslog archive', '1'];
@@ -308,9 +306,6 @@ function core_cron()
}
}
/**
* rrd graph collector, only schedule execution when enabled
*/
if (!(new \OPNsense\Diagnostics\SystemHealth())->enabled->isEmpty()) {
$jobs[]['autocron'] = [
'/usr/local/bin/flock -n -E 0 -o /tmp/updaterrd.lock /usr/local/opnsense/scripts/health/updaterrd.php',