From 97baa72d45f054030c0571d02014ce8d3cb37aae Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 11 Oct 2022 18:59:37 +0100 Subject: [PATCH] Add clamav to the Debian-exim group after exim is installed --- cookbooks/clamav/attributes/default.rb | 1 - cookbooks/exim/recipes/default.rb | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 cookbooks/clamav/attributes/default.rb diff --git a/cookbooks/clamav/attributes/default.rb b/cookbooks/clamav/attributes/default.rb deleted file mode 100644 index 141f3664e..000000000 --- a/cookbooks/clamav/attributes/default.rb +++ /dev/null @@ -1 +0,0 @@ -default[:accounts][:groups][:"Debian-exim"][:members] = [:clamav] diff --git a/cookbooks/exim/recipes/default.rb b/cookbooks/exim/recipes/default.rb index f8a50f9c9..e8e333b9b 100644 --- a/cookbooks/exim/recipes/default.rb +++ b/cookbooks/exim/recipes/default.rb @@ -31,6 +31,13 @@ package "exim4-daemon-heavy" do only_if { ::File.exist?("/var/run/clamav/clamd.ctl") } end +group "Debian-exim" do + action :modify + members "clamav" + append true + only_if { ::File.exist?("/var/run/clamav/clamd.ctl") } +end + group "ssl-cert" do action :modify members "Debian-exim" -- 2.39.5