]> git.openstreetmap.org Git - chef.git/commitdiff
Improve check for whether to run freshclam
authorTom Hughes <tom@compton.nu>
Thu, 13 Feb 2020 22:54:31 +0000 (22:54 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 13 Feb 2020 22:54:31 +0000 (22:54 +0000)
cookbooks/clamav/recipes/default.rb

index 3c95527ce3ea6bcf569b297a57ae3a8d9837c4f1..bbfc2cd686c9ee9ecd2f76cb3d0da985073972e7 100644 (file)
@@ -34,7 +34,10 @@ execute "freshclam" do
   command "/usr/bin/freshclam"
   user "clamav"
   group "clamav"
-  not_if { ::File.exist?("/var/lib/clamav/daily.cvd") }
+  not_if do
+    ::File.exist?("/var/lib/clamav/daily.cld") ||
+      ::File.exist?("/var/lib/clamav/daily.cvd")
+  end
 end
 
 service "clamav-daemon" do