]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
convert-ids-multiple-providers: Remove old used rulefiles file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 7 Apr 2021 18:47:07 +0000 (20:47 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Dec 2021 12:23:44 +0000 (13:23 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/suricata/convert-ids-multiple-providers

index ab5844bb047d029d13b62e7b5dfa7ca1e9af6fd5..a867bacce67a00198ff991e83fb9ac0bc402b305 100644 (file)
@@ -268,6 +268,9 @@ if (-f $old_used_rulefiles_file) {
        &IDS::set_ownership("$IDS::suricata_static_rulefiles_file");
 }
 
+# Remove old used rulefiles file.
+unlink($old_used_rulefiles_file);
+
 #
 ## Step 8: Reload the IDS ruleset if running.
 #