From: Stefan Schantl Date: Fri, 15 Apr 2022 03:12:56 +0000 (+0200) Subject: convert-ids-backend-files: Remove converted files. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=70b1672d94f3f6c3cfe82bf65df65125df0b0014;p=people%2Fstevee%2Fipfire-2.x.git convert-ids-backend-files: Remove converted files. Signed-off-by: Stefan Schantl --- 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"); } #