Skip to content

Commit 876ec08

Browse files
committed
clamav: clamav-unofficial-sigs only available for older releases
1 parent e6f54d8 commit 876ec08

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

cookbooks/clamav/recipes/default.rb

+9-6
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@
2222
package %w[
2323
clamav-daemon
2424
clamav-freshclam
25-
clamav-unofficial-sigs
2625
]
2726

28-
template "/etc/clamav-unofficial-sigs.conf.d/50-chef.conf" do
29-
source "clamav-unofficial-sigs.conf.erb"
30-
owner "root"
31-
group "root"
32-
mode "644"
27+
if platform?("ubuntu") && node[:lsb][:release].to_f < 24.04
28+
package "clamav-unofficial-sigs"
29+
30+
template "/etc/clamav-unofficial-sigs.conf.d/50-chef.conf" do
31+
source "clamav-unofficial-sigs.conf.erb"
32+
owner "root"
33+
group "root"
34+
mode "644"
35+
end
3336
end
3437

3538
execute "freshclam" do

0 commit comments

Comments
 (0)