From dff2def8edbdd96060f14b5296e33462899368ee Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 3 May 2026 15:01:51 +0100 Subject: [PATCH] Fix issues with exim recipe on machines without clamav --- cookbooks/clamav/recipes/default.rb | 1 + cookbooks/exim/recipes/default.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/clamav/recipes/default.rb b/cookbooks/clamav/recipes/default.rb index 34e25ddb6..9353c4936 100644 --- a/cookbooks/clamav/recipes/default.rb +++ b/cookbooks/clamav/recipes/default.rb @@ -87,6 +87,7 @@ end service "clamav-daemon" do action [:enable, :start] supports :status => true, :restart => true + subscribes :restart, "group[Debian-exim]" end service "clamav-freshclam" do diff --git a/cookbooks/exim/recipes/default.rb b/cookbooks/exim/recipes/default.rb index bf69286ad..21a076d56 100644 --- a/cookbooks/exim/recipes/default.rb +++ b/cookbooks/exim/recipes/default.rb @@ -35,7 +35,6 @@ group "Debian-exim" do action :modify members "clamav" append true - notifies :restart, "service[clamd]" only_if { ::File.exist?("/var/run/clamav/clamd.ctl") } end -- 2.39.5