]> git.openstreetmap.org Git - chef.git/commitdiff
Add clamav to the Debian-exim group after exim is installed
authorTom Hughes <tom@compton.nu>
Tue, 11 Oct 2022 17:59:37 +0000 (18:59 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 11 Oct 2022 17:59:37 +0000 (18:59 +0100)
cookbooks/clamav/attributes/default.rb [deleted file]
cookbooks/exim/recipes/default.rb

diff --git a/cookbooks/clamav/attributes/default.rb b/cookbooks/clamav/attributes/default.rb
deleted file mode 100644 (file)
index 141f366..0000000
+++ /dev/null
@@ -1 +0,0 @@
-default[:accounts][:groups][:"Debian-exim"][:members] = [:clamav]
index f8a50f9c97f118b6912e714c9ba80cbc650f9b14..e8e333b9bcc27da22c72db47b3767d78995e8b43 100644 (file)
@@ -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"