Install openstack-selinux on RHEL

The openstack-selinux package contains policy updates for OpenStack.
Updates are accrued in openstack-selinux before they are merged into
the upstream selinux-policy package.

Change-Id: I7c00e5cae17489202fe7aee3e656fca27ab630ba
This commit is contained in:
Richard Su 2014-09-24 14:35:56 -07:00
parent dbc60e8942
commit 8baf819b08
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
# Install openstack-selinux if it is available
# dib-lint: disable=sete
set -ux
set -o pipefail
HAS_PACKAGE=$(yum list | grep openstack-selinux)
if [ -n "$HAS_PACKAGE" ]; then
install-packages openstack-selinux
fi