]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/clamav/recipes/default.rb
Only uses push events on master to update the badges
[chef.git] / 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