mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
Fix SELinux for more system
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user