summaryrefslogtreecommitdiffstats
path: root/extras/rpm/vpp.spec
diff options
context:
space:
mode:
authorMatthew Smith <mgsmith@netgate.com>2018-02-22 21:12:11 -0600
committerDamjan Marion <dmarion.lists@gmail.com>2018-02-28 21:47:43 +0000
commit7c172cb245623b77caddf97aaf209f5cd6b2ae00 (patch)
tree6430fec83394db03b4ba073964b3ed7a3d80ffe5 /extras/rpm/vpp.spec
parent0b8567331c3edf8b6aee51c849b8391a2922d9ab (diff)
Adjust vpp-selinux-policy postinstall
Only run semodule command on hosts where selinux is enabled. Change-Id: I7bcfc758e44bb0f41ec657ad395352ddb92766eb Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Diffstat (limited to 'extras/rpm/vpp.spec')
-rw-r--r--extras/rpm/vpp.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec
index 1793966b0c3..a23cc1482e9 100644
--- a/extras/rpm/vpp.spec
+++ b/extras/rpm/vpp.spec
@@ -325,8 +325,8 @@ fi
%post selinux-policy
%_format MODULES %{_datadir}/selinux/packages/$x.pp
-%{_sbindir}/semodule -n -X 400 -s %{selinuxtype} -i $MODULES
if %{_sbindir}/selinuxenabled ; then
+ %{_sbindir}/semodule -n -X 400 -s %{selinuxtype} -i $MODULES
%{_sbindir}/load_policy
%relabel_files
fi