]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ids.cgi: Drop dirty hook for updating the ruleset
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 14 Feb 2018 08:00:03 +0000 (09:00 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 26 Jul 2018 09:57:00 +0000 (11:57 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 47a70c61d6667add9cfc885eead823f0d2dd7a7a..2f7ea23eb155d808d9b2317181423a81b4c649e6 100644 (file)
@@ -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.