mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
DCD-1089: The systemd installation location depends on the OS.
This commit is contained in:
@@ -7,7 +7,8 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
|
||||
|
||||
def test_service_file(host):
|
||||
f = host.file('/usr/lib/systemd/system/bitbucket.service')
|
||||
systemd_prefix = "/lib" if host.system_info.distribution == "ubuntu" else "/usr/lib"
|
||||
f = host.file(systemd_prefix+'/systemd/system/bitbucket.service')
|
||||
assert f.contains("^ExecStart=/opt/atlassian/bitbucket/current/bin/start-bitbucket.sh -fg --no-search$")
|
||||
assert f.contains("^UMask=0027$")
|
||||
assert f.contains("^LimitNOFILE=4096$")
|
||||
|
||||
Reference in New Issue
Block a user