From 70b1672d94f3f6c3cfe82bf65df65125df0b0014 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 15 Apr 2022 05:12:56 +0200 Subject: [PATCH] convert-ids-backend-files: Remove converted files. Signed-off-by: Stefan Schantl --- config/suricata/convert-ids-backend-files | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/suricata/convert-ids-backend-files b/config/suricata/convert-ids-backend-files index e7cef039d9..12849929b7 100644 --- a/config/suricata/convert-ids-backend-files +++ b/config/suricata/convert-ids-backend-files @@ -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"); } # -- 2.39.5