ids-functions.pl: Remove config files on rulesdir cleanup.

They every time oinkmaster is called will be generated.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2021-03-29 16:53:52 +02:00
parent b953677b0d
commit 09f7de9773

View File

@@ -966,9 +966,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);