Skip to content

Commit be0ae8d

Browse files
authored
Merge pull request #9353 from puppetlabs/backport-9352-to-7.x
[Backport 7.x] (PA-6032) Update tests for Ubuntu systemd behavior
2 parents 763216b + 12cabe6 commit be0ae8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

acceptance/tests/resource/service/ticket_5024_systemd_enabling_masked_service.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
agents.each do |agent|
2727
platform = agent.platform.variant
2828

29-
if agent['platform'] =~ /(debian|ubuntu)/
29+
if agent['platform'] =~ /ubuntu-24.04-amd64/
30+
init_script_systemd = "/usr/lib/systemd/system/#{package_name[platform]}.service"
31+
elsif agent['platform'] =~ /(debian|ubuntu)/
3032
init_script_systemd = "/lib/systemd/system/#{package_name[platform]}.service"
3133
else
3234
init_script_systemd = "/usr/lib/systemd/system/#{package_name[platform]}.service"

0 commit comments

Comments
 (0)