]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
update-ids-ruleset: Skip providers which are not enabled.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Mar 2022 10:23:44 +0000 (11:23 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Mar 2022 10:23:44 +0000 (11:23 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/scripts/update-ids-ruleset

index 9453f8f8e107c40d233ff4ff22196245bdccb44e..f87eb1926ff4ba439ce0cbc5130768c58f538fb7 100644 (file)
@@ -96,8 +96,12 @@ $locked = "1";
 foreach my $id (keys %providers) {
        # Assign some nice variabled.
        my $provider = $providers{$id}[0];
+       my $enabled_status = $providers{$id}[2];
        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.
        next unless($autoupdate_status eq "enabled");