From: Stefan Schantl Date: Fri, 3 Dec 2021 14:53:20 +0000 (+0100) Subject: ids-functions.pl: Remove config files when cleaning up the rules X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bfd496fd865ddbbe2c9847c2e28f99164f6024b4;p=people%2Fstevee%2Fipfire-2.x.git ids-functions.pl: Remove config files when cleaning up the rules directory. If there are one, they safly can be removed because the *.config files now live in a different folder. Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index fffb0a265d..2869bcdc44 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -1139,9 +1139,6 @@ sub _cleanup_rulesdir() { # We only want files. next unless (-f "$rulespath/$file"); - # Skip element if it has config as file extension. - next if ($file =~ m/\.config$/); - # Skip rules file for whitelisted hosts. next if ("$rulespath/$file" eq $whitelist_file);