From cf94ca50afe5fdddf0107ad38c57af724828ce4e Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Fri, 18 Sep 2015 15:40:16 +0200 Subject: [PATCH] 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 --- install_modules.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install_modules.sh b/install_modules.sh index d275b7105..daedf4307 100755 --- a/install_modules.sh +++ b/install_modules.sh @@ -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