From 7036f06b6f35a90de60d82c7fbafdd1c26c510e6 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Thu, 31 Oct 2024 13:23:16 +0300 Subject: [PATCH] updated func: check_selinux --- data_from_portwine/scripts/functions_helper | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index c5659c4..c450008 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -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