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

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15969 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2013-04-15 04:53:04 +00:00
parent 97c4aef241
commit 7f60027aa1

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