mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
Fix LinuxTest package installation commands
This commit is contained in:
parent
6d1d464e16
commit
82fb7b277d
1 changed files with 2 additions and 2 deletions
|
@ -31,9 +31,9 @@ class LinuxTest(Test):
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
raise Exception("docker run failed (linux stack)")
|
raise Exception("docker run failed (linux stack)")
|
||||||
if distro in ("ubuntu", "debian"):
|
if distro in ("ubuntu", "debian"):
|
||||||
cmd = "apt install -y /opt/\$(ls /opt | grep deb)"
|
cmd = "apt install -y /opt/\\$(ls /opt | grep deb)"
|
||||||
elif distro in ("centos", "fedora", "rhel"):
|
elif distro in ("centos", "fedora", "rhel"):
|
||||||
cmd = "dnf install -y /opt/\$(ls /opt | grep rpm)"
|
cmd = "dnf install -y /opt/\\$(ls /opt | grep rpm)"
|
||||||
proc = LinuxTest.docker_exec(distro, cmd)
|
proc = LinuxTest.docker_exec(distro, cmd)
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
raise Exception("docker exec apt install failed (linux stack)")
|
raise Exception("docker exec apt install failed (linux stack)")
|
||||||
|
|
Loading…
Reference in a new issue