Don't depend on a Fedora version test here, use httpd-core if the

package is present.
This commit is contained in:
Joe Orton 2022-08-15 08:12:40 +01:00
commit b8ffdae65c

View file

@ -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