]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/clamav/recipes/default.rb
Fix badge URLs
[chef.git] / cookbooks / clamav / recipes / default.rb
index 8e07f4fb76f23a8c597c4dd7f42f9134c0e388bf..bbfc2cd686c9ee9ecd2f76cb3d0da985073972e7 100644 (file)
@@ -30,6 +30,16 @@ template "/etc/clamav-unofficial-sigs.conf.d/50-chef.conf" do
   mode 0o644
 end
 
+execute "freshclam" do
+  command "/usr/bin/freshclam"
+  user "clamav"
+  group "clamav"
+  not_if do
+    ::File.exist?("/var/lib/clamav/daily.cld") ||
+      ::File.exist?("/var/lib/clamav/daily.cvd")
+  end
+end
+
 service "clamav-daemon" do
   action [:enable, :start]
   supports :status => true, :restart => true