diff --git a/README.md b/README.md index 01b4daf..77893c7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-    +   

:trollface: Nezha Monitoring self-hosted lightweight monitoring and operation and maintenance system. Supports system status, HTTP (SSL certificate change, upcoming expiration, expiration), TCP, Ping monitoring and alerting, execute scheduled tasks and web terminal.

diff --git a/script/install.sh b/script/install.sh index cbe3544..303396e 100755 --- a/script/install.sh +++ b/script/install.sh @@ -11,7 +11,7 @@ NZ_BASE_PATH="/opt/nezha" NZ_DASHBOARD_PATH="${NZ_BASE_PATH}/dashboard" NZ_AGENT_PATH="${NZ_BASE_PATH}/agent" NZ_AGENT_SERVICE="/etc/systemd/system/nezha-agent.service" -NZ_VERSION="v0.10.1" +NZ_VERSION="v0.10.2" red='\033[0;31m' green='\033[0;32m' @@ -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 diff --git a/script/install_en.sh b/script/install_en.sh index 0482e1f..0d41645 100755 --- a/script/install_en.sh +++ b/script/install_en.sh @@ -11,7 +11,7 @@ NZ_BASE_PATH="/opt/nezha" NZ_DASHBOARD_PATH="${NZ_BASE_PATH}/dashboard" NZ_AGENT_PATH="${NZ_BASE_PATH}/agent" NZ_AGENT_SERVICE="/etc/systemd/system/nezha-agent.service" -NZ_VERSION="v0.10.1" +NZ_VERSION="v0.10.2" red='\033[0;31m' green='\033[0;32m' @@ -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