From 80320488d150f7348f651bb427f3dad1e9b65f2c Mon Sep 17 00:00:00 2001 From: naiba Date: Thu, 31 Mar 2022 23:02:41 +0800 Subject: [PATCH] =?UTF-8?q?installer:=20=E6=9B=BF=E6=8D=A2=20ip.sb=20?= =?UTF-8?q?=E5=88=B0=20ipapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- script/install.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8c5faf4..7ca7974 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 967a282..690be42 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.8.1" +NZ_VERSION="v0.8.2" red='\033[0;31m' green='\033[0;32m' @@ -48,8 +48,8 @@ pre_check() { ## China_IP if [[ -z "${CN}" ]]; then - if [[ $(curl -m 10 -s https://api.ip.sb/geoip | grep 'China') != "" ]]; then - echo "根据ip.sb提供的信息,当前IP可能在中国" + if [[ $(curl -m 10 -s https://ipapi.co/json | grep 'China') != "" ]]; then + echo "根据ipapi.co提供的信息,当前IP可能在中国" read -e -r -p "是否选用中国镜像完成安装? [Y/n] " input case $input in [yY][eE][sS] | [yY])