Skip to content

Commit

Permalink
spamassassin: Use correct daemon name on Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Jul 29, 2024
1 parent 7542ad3 commit 0b828fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cookbooks/spamassassin/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

package "spamassassin"

service_name = if platform?("debian")
"spamd"
else
"spamassassin"
end
service_name = if platform?("debian") || (platform?("ubuntu") && node[:lsb][:release].to_f >= 24.04)
"spamd"
else
"spamassassin"
end

service service_name do
action [:enable, :start]
Expand Down
2 changes: 1 addition & 1 deletion test/integration/spamassassin/inspec/spamassassin_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service_name = if os.name == "debian"
service_name = if os.name == "debian" || (os.name == "ubuntu" && os.release.to_f >= 24.04)
"spamd"
else
"spamassassin"
Expand Down

0 comments on commit 0b828fd

Please sign in to comment.