diff --git a/README.md b/README.md index 545db6e..85eb566 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-    +   

:trollface: 哪吒监控 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,命令批量执行和计划任务。

diff --git a/script/install.sh b/script/install.sh index 99ef5ce..6671a71 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.6.6" +NZ_VERSION="v0.6.7" red='\033[0;31m' green='\033[0;32m' @@ -223,7 +223,7 @@ modify_agent_config() { return 0 fi - if [[ $1 == 0 ]]; then + if [[ $# != 3 ]]; then echo "请先在管理面板上添加Agent,记录下密钥" && read -ep "请输入一个解析到面板所在IP的域名(不可套CDN): " nz_grpc_host && read -ep "请输入面板RPC端口: (5555)" nz_grpc_port &&