mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
tests - tweak dpkg before installing BW
This commit is contained in:
parent
643b30f993
commit
898ee7ec87
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ class LinuxTest(Test):
|
|||
if proc.returncode != 0:
|
||||
raise Exception("docker run failed (linux stack)")
|
||||
if distro in ("ubuntu", "debian"):
|
||||
cmd = "apt install -y /opt/\\$(ls /opt | grep deb)"
|
||||
cmd = "echo force-bad-version >> /etc/dpkg/dpkg.cfg ; apt install -y /opt/\\$(ls /opt | grep deb)"
|
||||
elif distro in ("centos", "fedora", "rhel"):
|
||||
cmd = "dnf install -y /opt/\\$(ls /opt | grep rpm)"
|
||||
proc = LinuxTest.docker_exec(distro, cmd)
|
||||
|
|
@ -43,7 +43,7 @@ class LinuxTest(Test):
|
|||
if distro in ("ubuntu", "debian"):
|
||||
LinuxTest.docker_exec(
|
||||
distro,
|
||||
"DEBIAN_FRONTEND=noninteractive apt-get install -y php-fpm unzip ; echo force-bad-version >> /etc/dpkg/dpkg.cfg",
|
||||
"DEBIAN_FRONTEND=noninteractive apt-get install -y php-fpm unzip",
|
||||
)
|
||||
if distro == "ubuntu":
|
||||
LinuxTest.docker_cp(
|
||||
|
|
|
|||
Loading…
Reference in a new issue