From 64f4155ba9dc9fc15839f17aab3d54edbcb6ea76 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 28 Nov 2007 02:25:52 +0000 Subject: Log when we change the bogons frequency hour. --- etc/inc/config.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/etc/inc/config.inc b/etc/inc/config.inc index daf38ca..74a650b 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -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']) -- cgit v1.1