From c62f84b4a68b2211412696fcea4327120e507e53 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Sun, 8 Feb 2026 23:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BD=E5=AE=B6=E4=BB=A3?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Prometheus/install_node_exporter.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Prometheus/install_node_exporter.sh b/Prometheus/install_node_exporter.sh index ef831a6..1a8ae45 100644 --- a/Prometheus/install_node_exporter.sh +++ b/Prometheus/install_node_exporter.sh @@ -28,13 +28,11 @@ is_cn=false echo "Detecting geographic location..." -COUNTRY=$(curl -s --max-time 5 https://ipinfo.littlediary.cn/info | grep -o '"country":"[^"]*"' | cut -d'"' -f4) +COUNTRY=$(curl -s --max-time 5 https://ipinfo.littlediary.cn/info | grep -o '"countryName":"[^"]*"' | cut -d'"' -f4) -if [ "$COUNTRY" = "CN" ]; then +if [ "$COUNTRY" = "China" ]; then is_cn=true fi - - if [ "$is_cn" = true ]; then echo "Geolocation: China mainland detected" DOWNLOAD_URL="$CN_URL"