diff --git a/README.md b/README.md
index a5b6bf8..e4c93e9 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
LOGO designed by 熊大 .
-
+
:trollface: Nezha Monitoring: Self-hostable, lightweight, servers and websites monitoring and O&M tool.
diff --git a/script/install.sh b/script/install.sh index 369686c..be01e0a 100755 --- a/script/install.sh +++ b/script/install.sh @@ -14,7 +14,7 @@ NZ_AGENT_SERVICE="/etc/systemd/system/nezha-agent.service" NZ_AGENT_SERVICERC="/etc/init.d/nezha-agent" NZ_DASHBOARD_SERVICE="/etc/systemd/system/nezha-dashboard.service" NZ_DASHBOARD_SERVICERC="/etc/init.d/nezha-dashboard" -NZ_VERSION="v0.15.7" +NZ_VERSION="v0.15.8" red='\033[0;31m' green='\033[0;32m' @@ -269,7 +269,8 @@ install_dashboard_standalone() { selinux() { #判断当前的状态 - if [ "$os_alpine" != 1 ]; then + command -v getenforce >/dev/null 2>&1 + if [ $? -eq 0 ]; then getenforce | grep '[Ee]nfor' if [ $? -eq 0 ]; then echo -e "SELinux是开启状态,正在关闭!" diff --git a/script/install_en.sh b/script/install_en.sh index 43da8ad..4badc3a 100755 --- a/script/install_en.sh +++ b/script/install_en.sh @@ -14,7 +14,7 @@ NZ_AGENT_SERVICE="/etc/systemd/system/nezha-agent.service" NZ_AGENT_SERVICERC="/etc/init.d/nezha-agent" NZ_DASHBOARD_SERVICE="/etc/systemd/system/nezha-dashboard.service" NZ_DASHBOARD_SERVICERC="/etc/init.d/nezha-dashboard" -NZ_VERSION="v0.15.7" +NZ_VERSION="v0.15.8" red='\033[0;31m' green='\033[0;32m' @@ -266,7 +266,8 @@ install_dashboard_standalone() { selinux() { #Check SELinux - if [ "$os_alpine" != 1 ]; then + command -v getenforce >/dev/null 2>&1 + if [ $? -eq 0 ]; then getenforce | grep '[Ee]nfor' if [ $? -eq 0 ]; then echo -e "SELinux running,closing now!"