From: Stefan Schantl Date: Wed, 14 Feb 2018 08:00:03 +0000 (+0100) Subject: ids.cgi: Drop dirty hook for updating the ruleset X-Git-Tag: suricata-beta3~33^2~39^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad1d8a8accc454e0bf36e93fa9b6c5890ccc5024;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Drop dirty hook for updating the ruleset Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 47a70c61d6..2f7ea23eb1 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -52,30 +52,6 @@ my $snortrulepath = "/etc/snort/rules"; my $snortusedrulefilesfile = "${General::swroot}/snort/snort-used-rulefiles.conf"; my $errormessage; -# Hook used to download and update the ruleset, -# if the cgi got called from command line. -if ($ENV{"REMOTE_ADDR"} eq "") { - # Read snortsettings. - &General::readhash("${General::swroot}/snort/settings", \%snortsettings); - - # Download rules tarball. - $errormessage = &downloadruleset(); - - # Sleep for one second. - sleep(1); - - # Check if there was an error message. - unless ($errormessage) { - # Call oinkmaster. - &oinkmaster(); - } else { - # Call logger and log the errormessage. - system("logger -t oinkmaster $errormessage"); - } - -exit(0); -} - &Header::showhttpheaders(); # Default settings for snort.