Move update bogons script to 3am.

Discussed on pfSense-support@
This commit is contained in:
Scott Ullrich 2007-11-28 19:51:27 +00:00
parent 64f4155ba9
commit 2672d65db3
3 changed files with 5 additions and 5 deletions

View File

@ -646,7 +646,7 @@
</item>
<item>
<minute>1</minute>
<hour>2</hour>
<hour>3</hour>
<mday>1</mday>
<month>*</month>
<wday>*</wday>

View File

@ -637,7 +637,7 @@
</item>
<item>
<minute>1</minute>
<hour>2</hour>
<hour>3</hour>
<mday>1</mday>
<month>*</month>
<wday>*</wday>

View File

@ -492,9 +492,9 @@ function convert_config() {
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");
log_error("Updated bogon update frequency to 2am");
$config['cron']['item'][$x]['hour'] = "3";
write_config("Updated bogon update frequency to 3am");
log_error("Updated bogon update frequency to 3am");
}
}
}