Handle the case when SELinux is disabled.

Recently we decided to ensure SELinux was in permissive mode to avoid
package issues. If a user has its node already with SELinux disabld the
call to setenforce 0 would fail with the following issue :

usr/sbin/setenforce: SELinux is disabled

This commit fixes that

Change-Id: Ie42f62325d0f3e863feb7e412e073341e0f04a36
This commit is contained in:
Yanis Guenane 2015-09-18 15:40:16 +02:00
parent 36838c984b
commit cf94ca50af

View File

@ -62,5 +62,7 @@ else
# something is python-cffi is preventing Nova & Keystone to
# correctly run when SElinux is enforced. See bug:
# https://bugzilla.redhat.com/show_bug.cgi?id=1249685
/usr/sbin/setenforce 0
# We use || true because if selinux is Disabled the following
# command would fail
/usr/sbin/setenforce 0 || true
fi