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