mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
ids-functions.pl: Only write existing provider specific used rulesfiles
files into main include yaml file. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -1408,8 +1408,11 @@ sub write_main_used_rulefiles_file (@) {
|
||||
# Call function to get the providers used rulefiles file.
|
||||
my $filename = &get_used_provider_rulesfile_file($provider);
|
||||
|
||||
# Print the provider to the file.
|
||||
print FILE "include\: $filename\n";
|
||||
# Check if the file exists and write it into the used rulefiles file.
|
||||
if (-f $filename) {
|
||||
# Print the provider to the file.
|
||||
print FILE "include\: $filename\n";
|
||||
}
|
||||
}
|
||||
|
||||
# Always include the file which hold the static includes.
|
||||
|
||||
Reference in New Issue
Block a user