]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
convert-ids-backend-files: Remove converted files.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 15 Apr 2022 03:12:56 +0000 (05:12 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 15 Apr 2022 03:12:56 +0000 (05:12 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/suricata/convert-ids-backend-files

index e7cef039d9375317ed23ff825a5499994b170e75..12849929b7fcd2e8f324e0612490aa5db1ab93eb 100644 (file)
@@ -74,6 +74,9 @@ foreach my $provider (@providers) {
 
        # Set the correct ownership for the new file.
        &IDS::set_ownership("$used_rulesfiles_file");
+
+       # Delete old used rulesfiles file.
+       unlink("$old_used_rulesfiles_file");
 }
 
 #
@@ -127,6 +130,9 @@ foreach my $provider (@providers) {
 
        # Set correct ownership for the new modifications file.
        &IDS::set_ownership("$new_modifications_file");
+
+       # Delete old modifications file.
+       unlink("$old_modifications_file");
 }
 
 #