mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Move update bogons script to 3am.
Discussed on pfSense-support@
This commit is contained in:
parent
64f4155ba9
commit
2672d65db3
@ -646,7 +646,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<minute>1</minute>
|
||||
<hour>2</hour>
|
||||
<hour>3</hour>
|
||||
<mday>1</mday>
|
||||
<month>*</month>
|
||||
<wday>*</wday>
|
||||
|
||||
@ -637,7 +637,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<minute>1</minute>
|
||||
<hour>2</hour>
|
||||
<hour>3</hour>
|
||||
<mday>1</mday>
|
||||
<month>*</month>
|
||||
<wday>*</wday>
|
||||
|
||||
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user