From abfb6001981fbfdb5d99f8263a8432cc773ede70 Mon Sep 17 00:00:00 2001 From: Matthieu Serrepuy Date: Tue, 2 Feb 2016 11:17:13 +0100 Subject: [PATCH] https://github.com/RoboticCheese/clamav-chef/issues/52 Remove the forced execution of freshclam on ubuntu. It will be executed only if the attribute is set --- recipes/freshclam.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/freshclam.rb b/recipes/freshclam.rb index da52582..ba5f816 100644 --- a/recipes/freshclam.rb +++ b/recipes/freshclam.rb @@ -52,8 +52,7 @@ if node['clamav']['freshclam']['enabled'] notifies :restart, "service[#{node['clamav']['freshclam']['service']}]", :delayed - end - if !node['clamav']['freshclam']['enabled'] || platform_family == 'debian' + else notifies :run, 'execute[freshclam]', :delayed end end