From: Stefan Schantl Date: Wed, 13 Dec 2017 10:53:44 +0000 (+0100) Subject: ids.cgi: Remove logfile after wget has successfully downloaded the ruleset X-Git-Tag: suricata-beta3~33^2~39^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f22237bebe2d3880b27c671c173ffcf79040ed2;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Remove logfile after wget has successfully downloaded the ruleset Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index e5ac07d31a..a89a1d50dd 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -286,6 +286,9 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) { # Store error message for display. $errormessage = "
".$return."
"; } else { + # Remove logfile. + unlink("/var/tmp/log"); + # Call subfunction to launch oinkmaster. &oinkmaster();