From: Stefan Schantl Date: Thu, 7 Feb 2019 06:44:11 +0000 (+0100) Subject: ids.cgi: Show "Update Ruleset"-Button only if automatic updates are disabled X-Git-Tag: suricata-rc1~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f2145eb59d3f0f7cbc70cd4f071302fd56213ea;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Show "Update Ruleset"-Button only if automatic updates are disabled Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 60e40d7de5..5ed3ed9f2e 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -902,8 +902,8 @@ print < END ; - # Check if a ruleset has been downloaded yet. - if (%idsrules) { + # Show the "Update Ruleset"-Button only if a ruleset has been downloaded yet and automatic updates are disabled. + if ((%idsrules) && ($rulessettings{'AUTOUPDATE_INTERVAL'} eq "off")) { # Display button to update the ruleset. print"\n"; }