DCD-1089: The systemd installation location depends on the OS.

This commit is contained in:
Steve Smith
2020-08-28 13:07:56 +10:00
parent 5bae465412
commit 657efb77ab
8 changed files with 24 additions and 7 deletions

View File

@@ -7,7 +7,8 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_service_file(host):
f = host.file('/usr/lib/systemd/system/jira-software.service')
systemd_prefix = "/lib" if host.system_info.distribution == "ubuntu" else "/usr/lib"
f = host.file(systemd_prefix+'/systemd/system/jira-software.service')
assert f.contains("^ExecStart=/opt/atlassian/jira-software/current/bin/start-jira.sh -fg$")
assert f.user == 'root'
assert f.group == 'root'