]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Remove logfile after wget has successfully downloaded the ruleset
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 13 Dec 2017 10:53:44 +0000 (11:53 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 26 Jul 2018 09:47:00 +0000 (11:47 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index e5ac07d31a8081bbc33ad25edf303f23d8624ea5..a89a1d50dd8f5b6a132bb4f4226107122ffd1373 100644 (file)
@@ -286,6 +286,9 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
                                # Store error message for display.
                                $errormessage = "<br /><pre>".$return."</pre>";
                        } else {
+                               # Remove logfile.
+                               unlink("/var/tmp/log");
+
                                # Call subfunction to launch oinkmaster.
                                &oinkmaster();