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:
parent
d8b7c905a6
commit
575100ab75
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user