Commit 7036f06b authored by Mikhail Tergoev's avatar Mikhail Tergoev

updated func: check_selinux

parent 36e3163e
...@@ -756,19 +756,15 @@ check_selinux () { ...@@ -756,19 +756,15 @@ check_selinux () {
if grep -i ^"SELINUX=enforcing" /run/host/etc/selinux/config &>/dev/null ; then if grep -i ^"SELINUX=enforcing" /run/host/etc/selinux/config &>/dev/null ; then
export SELINUX_IN_USE=1 export SELINUX_IN_USE=1
return 0 return 0
else
export SELINUX_IN_USE=0
return 1
fi fi
else else
if grep -i ^"SELINUX=enforcing" /etc/selinux/config &>/dev/null ; then if grep -i ^"SELINUX=enforcing" /etc/selinux/config &>/dev/null ; then
export SELINUX_IN_USE=1 export SELINUX_IN_USE=1
return 0 return 0
else
export SELINUX_IN_USE=0
return 1
fi fi
fi fi
export SELINUX_IN_USE=0
return 1
} }
export -f check_selinux export -f check_selinux
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment