tests: Fix RHEL check

This commit is contained in:
Martin Pitt 2020-05-15 08:25:32 +02:00
parent 4c639d46fc
commit 3d9d9a56f4

View File

@ -10,7 +10,7 @@ chmod a+w "$LOGS"
# install browser; on RHEL, use chromium from epel
if ! rpm -q chromium-headless; then
if grep -q 'ID=rhel' /etc/os-release; then
if grep -q 'ID=.*rhel' /etc/os-release; then
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf config-manager --enable epel
fi