♻️ register when upgrade

This commit is contained in:
naiba
2020-11-30 14:24:00 +08:00
parent a0a3ee317b
commit 7ce1f535f5
2 changed files with 11 additions and 9 deletions

View File

@@ -190,7 +190,6 @@ install_agent() {
modify_agent_config() {
echo -e "> 修改Agent配置"
cd $NZ_AGENT_PATH
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/nezha-agent.service -o $NZ_AGENT_SERVICE >/dev/null 2>&1
if [[ $? != 0 ]]; then
echo -e "${red}文件下载失败,请检查本机能否连接 raw.githubusercontent.com${plain}"