summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-28 01:51:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-28 01:51:30 +0000
commitfde664fca5278665b36415092119abffaa4d63af (patch)
treebffd01b11bee2ce980b85211ba5edb97c789d55d
parent4dd8796b415b757e34ee18105cff591bbff5b6fa (diff)
downloadpfsense-fde664fca5278665b36415092119abffaa4d63af.zip
pfsense-fde664fca5278665b36415092119abffaa4d63af.tar.gz
Change bogons update script frequency to 2am.
-rw-r--r--etc/inc/config.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 1ea5382..465c5de 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1134,6 +1134,16 @@ function convert_config() {
}
+ /* special case upgrades */
+ /* 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")) {
+ $config['cron']['item'][$x]['hour'] = "2";
+ write_config("Updated bogon update frequency to 2am");
+ }
+ }
+
if ($prev_version != $config['version'])
write_config("Upgraded config version level from {$prev_version} to {$config['version']}");
}
OpenPOWER on IntegriCloud