Skip to content

Commit a08b436

Browse files
committed
spamassassin: Use correct daemon name on Ubuntu 24.04
1 parent 7542ad3 commit a08b436

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cookbooks/spamassassin/recipes/default.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
package "spamassassin"
2121

22-
service_name = if platform?("debian")
22+
service_name = if platform?("debian") || (platform?("ubuntu") && node[:lsb][:release].to_f >= 24.04)
2323
"spamd"
2424
else
2525
"spamassassin"

test/integration/spamassassin/inspec/spamassassin_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
service_name = if os.name == "debian"
1+
service_name = if os.name == "debian" || (os.name == "ubuntu" && os.release.to_f >= 24.04)
22
"spamd"
33
else
44
"spamassassin"

0 commit comments

Comments
 (0)