From b8ffdae65c8f44ab149caf568ff578207262b59f Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 15 Aug 2022 08:12:40 +0100 Subject: [PATCH] Don't depend on a Fedora version test here, use httpd-core if the package is present. --- core/selinux-context/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/selinux-context/runtest.sh b/core/selinux-context/runtest.sh index f6df5ce..12652c9 100755 --- a/core/selinux-context/runtest.sh +++ b/core/selinux-context/runtest.sh @@ -41,7 +41,7 @@ rlJournalStart rlPhaseStartTest # https://src.fedoraproject.org/rpms/httpd/pull-request/25 - if rlIsFedora '>=36'; then + if rpm -q httpd-core >& /dev/null; then rlRun "ls -d -Z \$(rpm -ql httpd-core) > files_context.log"\ 0 "getting selinux context of rpm's files (httpd-core)" else