Fix SELinux for more system
This commit is contained in:
parent
750decd076
commit
573ca82ec6
@ -198,7 +198,7 @@ install_dashboard() {
|
|||||||
|
|
||||||
selinux(){
|
selinux(){
|
||||||
#判断当前的状态
|
#判断当前的状态
|
||||||
getenforce | grep enfor
|
getenforce | grep '[Ee]nfor'
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
echo -e "SELinux是开启状态,正在关闭!"
|
echo -e "SELinux是开启状态,正在关闭!"
|
||||||
setenforce 0 &>/dev/null
|
setenforce 0 &>/dev/null
|
||||||
|
@ -167,7 +167,7 @@ install_dashboard() {
|
|||||||
|
|
||||||
selinux(){
|
selinux(){
|
||||||
#Check SELinux
|
#Check SELinux
|
||||||
getenforce | grep enfor
|
getenforce | grep '[Ee]nfor'
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
echo -e "SELinux running,closing now!"
|
echo -e "SELinux running,closing now!"
|
||||||
setenforce 0 &>/dev/null
|
setenforce 0 &>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user