mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor RHEL distribution handling in LinuxTest to streamline package installation and reset PHP module
This commit is contained in:
parent
2451ed4048
commit
5a28861b71
1 changed files with 9 additions and 7 deletions
|
|
@ -64,14 +64,16 @@ class LinuxTest(Test):
|
|||
)
|
||||
LinuxTest.docker_exec(distro, "systemctl stop php8.1-fpm ; systemctl start php8.1-fpm")
|
||||
elif distro in ("centos", "fedora") or distro.startswith("rhel"):
|
||||
if distro == "rhel":
|
||||
LinuxTest.docker_exec(distro, "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm")
|
||||
LinuxTest.docker_exec(distro, "dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm")
|
||||
LinuxTest.docker_exec(distro, "dnf module enable php:remi-8.3 -y")
|
||||
elif distro == "rhel9":
|
||||
LinuxTest.docker_exec(distro, "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm")
|
||||
LinuxTest.docker_exec(distro, "dnf install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm")
|
||||
if distro.startswith("rhel"):
|
||||
if distro == "rhel":
|
||||
LinuxTest.docker_exec(distro, "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm")
|
||||
LinuxTest.docker_exec(distro, "dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm")
|
||||
elif distro == "rhel9":
|
||||
LinuxTest.docker_exec(distro, "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm")
|
||||
LinuxTest.docker_exec(distro, "dnf install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm")
|
||||
LinuxTest.docker_exec(distro, "dnf module reset php -y")
|
||||
LinuxTest.docker_exec(distro, "dnf module enable php:remi-8.3 -y")
|
||||
|
||||
LinuxTest.docker_exec(distro, "dnf install -y php-fpm unzip")
|
||||
LinuxTest.docker_cp(distro, "./tests/www-rpm.conf", "/etc/php-fpm.d/www.conf")
|
||||
LinuxTest.docker_exec(
|
||||
|
|
|
|||
Loading…
Reference in a new issue