🔨 优化一键脚本

This commit is contained in:
naiba
2021-01-31 19:14:30 +08:00
parent b5bb569bb3
commit a6b4b4759f
2 changed files with 5 additions and 6 deletions

View File

@@ -10,7 +10,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.4.2"
NZ_VERSION="v0.4.3"
GITHUB_RAW_URL="raw.githubusercontent.com"
GITHUB_URL="github.com"
@@ -85,8 +85,7 @@ pre_check() {
os_arch="arm"
fi
## server location
if curl -s api.myip.la/json | grep -q 'China'; then
if [[ -z "${CN}" ]]; then
GITHUB_RAW_URL="raw.sevencdn.com"
GITHUB_URL="hub.fastgit.org"
fi