fix for bug 3496: disable SELinux on RHEL, check rc problem

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15970 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2013-04-15 04:53:23 +00:00
parent d8b7c905a6
commit 575100ab75

View File

@ -442,7 +442,9 @@ if ($::INITIALINSTALL || $::FORCE)
if (-f "/etc/redhat-release")
{
my $rc=xCAT::Utils->isSELINUX();
if ($rc != 0)
# rc 0 means SELinux is enabled
# rc 1 means SELinux is not enabled
if ($rc == 0)
{
xCAT::MsgUtils->message('W', "SELINUX is not disabled, disabling it now...");
# Disable selinux for running system