summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2022-07-07 12:24:29 +0200
committerJan Pazdziora <jpazdziora@redhat.com>2022-07-08 12:18:47 +0200
commit324ef7528d81513f812cd0044836ddc11b883190 (patch)
tree97655804c1d5c54b0d9c8c8936ce88be0bb52818
parentf03a464bd163de9f3c464a3b03ab3c4b7543e9a0 (diff)
downloadmod_intercept_form_submit-master.tar.gz
mod_intercept_form_submit-master.tar.xz
mod_intercept_form_submit-master.zip
In dist-git / Fedora CI testing, we also need the proper SELinux configuration.HEADmaster
-rwxr-xr-xtests/build.sh2
-rwxr-xr-xtests/config.sh4
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/build.sh b/tests/build.sh
index ca4cba3..e07f718 100755
--- a/tests/build.sh
+++ b/tests/build.sh
@@ -12,7 +12,7 @@ if type dnf 2> /dev/null ; then
BUILDDEP='dnf builddep'
fi
-$DNF install -y --setopt=install_weak_deps=False rpm-build "$BUILDDEP_PROVIDER"
+$DNF install -y --setopt=install_weak_deps=False rpm-build "$BUILDDEP_PROVIDER" libselinux-utils
$BUILDDEP -y --setopt=install_weak_deps=False mod_intercept_form_submit.spec
NAME_VERSION=$( rpm -q --qf '%{name}-%{version}\n' --specfile mod_intercept_form_submit.spec | head -1 )
mkdir .$NAME_VERSION
diff --git a/tests/config.sh b/tests/config.sh
index 19024dd..9bdfd54 100755
--- a/tests/config.sh
+++ b/tests/config.sh
@@ -21,3 +21,7 @@ fi
echo "$NAME:myši & zajíci" | chpasswd
chgrp apache /etc/shadow
chmod g+r /etc/shadow
+# In dist-git / Fedora CI testing, we also need the proper SELinux configuration
+if selinuxenabled ; then
+ setsebool allow_httpd_mod_auth_pam 1
+fi