Fix SELinux for more system
This commit is contained in:
parent
750decd076
commit
573ca82ec6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user