]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids-functions.pl: Remove config files on rulesdir cleanup.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 29 Mar 2021 14:53:52 +0000 (16:53 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Dec 2021 12:22:59 +0000 (13:22 +0100)
They every time oinkmaster is called will be generated.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index daa0044931df789ce6932703c813d7443f3c64ab..1602c42a966bc6109dbc9d855e79aff4023bfbbe 100644 (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);