mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Log when we change the bogons frequency hour.
This commit is contained in:
parent
232c07a79c
commit
64f4155ba9
@ -490,12 +490,13 @@ function convert_config() {
|
||||
/* fix every minute crontab bogons entry */
|
||||
$cron_item_count = count($config['cron']['item']);
|
||||
for($x=0; $x<$cron_item_count; $x++) {
|
||||
if(stristr($config['cron']['item'][$x]['command'], "rc.update_bogons.sh")) {
|
||||
if($config['cron']['item'][$x]['hour'] == "*" ) {
|
||||
$config['cron']['item'][$x]['hour'] = "2";
|
||||
write_config("Updated bogon update frequency to 2am");
|
||||
}
|
||||
}
|
||||
if(stristr($config['cron']['item'][$x]['command'], "rc.update_bogons.sh")) {
|
||||
if($config['cron']['item'][$x]['hour'] == "*" ) {
|
||||
$config['cron']['item'][$x]['hour'] = "2";
|
||||
write_config("Updated bogon update frequency to 2am");
|
||||
log_error("Updated bogon update frequency to 2am");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($config['version'] == $g['latest_config'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user