From 58eca1b7992b6ac9373789051551c9443344f147 Mon Sep 17 00:00:00 2001 From: naiba Date: Wed, 3 Aug 2022 10:39:28 +0800 Subject: [PATCH] improve install_en.sh [no ci] --- README.md | 2 +- script/install.sh | 2 +- script/install_en.sh | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index faf78c2..898e5a6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-    +   

:trollface: Nezha Monitoring: Self-hosted, lightweight server and website monitoring and O&M tool.

diff --git a/script/install.sh b/script/install.sh index 943b779..fff1940 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.6" +NZ_VERSION="v0.10.7" red='\033[0;31m' green='\033[0;32m' diff --git a/script/install_en.sh b/script/install_en.sh index cd29e1d..92342dd 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.6" +NZ_VERSION="v0.10.7" red='\033[0;31m' green='\033[0;32m' @@ -72,10 +72,10 @@ confirm() { update_script() { echo -e "> Update Script" - curl -sL https://${GITHUB_RAW_URL}/script/install.sh -o /tmp/nezha.sh + curl -sL https://${GITHUB_RAW_URL}/script/install_en.sh -o /tmp/nezha.sh new_version=$(cat /tmp/nezha.sh | grep "NZ_VERSION" | head -n 1 | awk -F "=" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g') if [ ! -n "$new_version" ]; then - echo -e "Script failed to get, please check if the network can link https://${GITHUB_RAW_URL}/script/install.sh" + echo -e "Script failed to get, please check if the network can link https://${GITHUB_RAW_URL}/script/install_en.sh" return 1 fi echo -e "The current latest version is: ${new_version}"