forked from CastroFidel/PortWINE
updated func: check_selinux
This commit is contained in:
parent
36e3163edf
commit
7036f06b6f
@ -756,19 +756,15 @@ check_selinux () {
|
||||
if grep -i ^"SELINUX=enforcing" /run/host/etc/selinux/config &>/dev/null ; then
|
||||
export SELINUX_IN_USE=1
|
||||
return 0
|
||||
else
|
||||
export SELINUX_IN_USE=0
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
if grep -i ^"SELINUX=enforcing" /etc/selinux/config &>/dev/null ; then
|
||||
export SELINUX_IN_USE=1
|
||||
return 0
|
||||
else
|
||||
export SELINUX_IN_USE=0
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
export SELINUX_IN_USE=0
|
||||
return 1
|
||||
}
|
||||
export -f check_selinux
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user