From 573ca82ec676697f8ab528bbea3b065c3e212184 Mon Sep 17 00:00:00 2001 From: Erope Date: Sat, 14 May 2022 13:21:42 +0800 Subject: [PATCH] Fix SELinux for more system --- script/install.sh | 2 +- script/install_en.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/install.sh b/script/install.sh index cbe3544..d7bcefe 100755 --- a/script/install.sh +++ b/script/install.sh @@ -198,7 +198,7 @@ install_dashboard() { selinux(){ #判断当前的状态 - getenforce | grep enfor + getenforce | grep '[Ee]nfor' if [ $? -eq 0 ];then echo -e "SELinux是开启状态,正在关闭!" setenforce 0 &>/dev/null diff --git a/script/install_en.sh b/script/install_en.sh index 0482e1f..ef33fa6 100755 --- a/script/install_en.sh +++ b/script/install_en.sh @@ -167,7 +167,7 @@ install_dashboard() { selinux(){ #Check SELinux - getenforce | grep enfor + getenforce | grep '[Ee]nfor' if [ $? -eq 0 ];then echo -e "SELinux running,closing now!" setenforce 0 &>/dev/null