mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 03:25:54 +02:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user