]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ids-functions.pl: Remove config files when cleaning up the rules
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 3 Dec 2021 14:53:20 +0000 (15:53 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Dec 2021 12:32:21 +0000 (13:32 +0100)
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>
config/cfgroot/ids-functions.pl

index fffb0a265df092a81ae73bc7da102fa31af6ec8d..2869bcdc44d8b710214e406d1c17b690511e90c5 100644 (file)
@@ -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);