Log when we change the bogons frequency hour.

This commit is contained in:
Scott Ullrich 2007-11-28 02:25:52 +00:00
parent 232c07a79c
commit 64f4155ba9

View File

@ -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'])