]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/scripts/update-ids-ruleset
update-ids-ruleset: Silent script if no providers settings file exists.
[ipfire-2.x.git] / src / scripts / update-ids-ruleset
index e9a082e629231d268b5915d88abfe943814b3785..553c1a1e1e90ad2edf8680de0357e5e2b4526f85 100644 (file)
@@ -95,8 +95,8 @@ if ($return) {
 # The script has requested a lock, so set locket to "1".
 $locked = "1";
 
-# Grab the configured providers.
-&General::readhasharray("$IDS::providers_settings_file", \%providers);
+# Grab the configured providers, if the providers settings file exists.
+&General::readhasharray("$IDS::providers_settings_file", \%providers) if (-f "$IDS::providers_settings_file");
 
 # Loop through the array of available providers.
 foreach my $id (keys %providers) {