Fix SELinux for more system

This commit is contained in:
Erope 2022-05-14 13:21:42 +08:00
parent 750decd076
commit 573ca82ec6
No known key found for this signature in database
GPG Key ID: 934F29AB0411C0E9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -167,7 +167,7 @@ install_dashboard() {
selinux(){
#Check SELinux
getenforce | grep enfor
getenforce | grep '[Ee]nfor'
if [ $? -eq 0 ];then
echo -e "SELinux runningclosing now"
setenforce 0 &>/dev/null