mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
update-ids-ruleset: Skip providers which are not enabled.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -96,8 +96,12 @@ $locked = "1";
|
|||||||
foreach my $id (keys %providers) {
|
foreach my $id (keys %providers) {
|
||||||
# Assign some nice variabled.
|
# Assign some nice variabled.
|
||||||
my $provider = $providers{$id}[0];
|
my $provider = $providers{$id}[0];
|
||||||
|
my $enabled_status = $providers{$id}[2];
|
||||||
my $autoupdate_status = $providers{$id}[3];
|
my $autoupdate_status = $providers{$id}[3];
|
||||||
|
|
||||||
|
# Skip the provider if it is not enabled.
|
||||||
|
next unless($enabled_status eq "enabled");
|
||||||
|
|
||||||
# Skip the provider if autoupdate is not enabled.
|
# Skip the provider if autoupdate is not enabled.
|
||||||
next unless($autoupdate_status eq "enabled");
|
next unless($autoupdate_status eq "enabled");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user