ids.cgi: Remove logfile after wget has successfully downloaded the ruleset

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2017-12-13 11:53:44 +01:00
parent 500c5c55d0
commit 8f22237beb

View 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();