diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-10-04 12:43:51 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-12-15 12:04:41 -0500 |
commit | 0c5c925312ce02971d1c985ccfb449accd21e116 (patch) | |
tree | 41755673b84ec7333576c280d8be1f051a3bbbb7 /config/suricata | |
parent | 7dcab24564e9d96eb8d3bfd9d609b9de1ef62225 (diff) | |
download | pfsense-packages-0c5c925312ce02971d1c985ccfb449accd21e116.tar.gz pfsense-packages-0c5c925312ce02971d1c985ccfb449accd21e116.tar.bz2 pfsense-packages-0c5c925312ce02971d1c985ccfb449accd21e116.zip |
Add check to stop progress bar output during cron task rules update.
Diffstat (limited to 'config/suricata')
-rw-r--r-- | config/suricata/suricata_check_for_rule_updates.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/suricata/suricata_check_for_rule_updates.php b/config/suricata/suricata_check_for_rule_updates.php index da61caf2..9a05b05e 100644 --- a/config/suricata/suricata_check_for_rule_updates.php +++ b/config/suricata/suricata_check_for_rule_updates.php @@ -209,7 +209,9 @@ function suricata_download_file_url($url, $file_out) { curl_setopt($ch, CURLOPT_FILE, $fout); // NOTE: required to suppress errors from XMLRPC due to progress bar output - if ($g['suricata_sync_in_progress']) + // and to prevent useless spam from rules update cron job execution. This + // prevents progress bar output during package sync and rules update cron task. + if ($g['suricata_sync_in_progress'] || $pkg_interface == "console") curl_setopt($ch, CURLOPT_HEADER, false); else { curl_setopt($ch, CURLOPT_HEADERFUNCTION, 'read_header'); |