mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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 <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user