From a0a3ee317baf9aec5b58cdd27da1c8788b380434 Mon Sep 17 00:00:00 2001 From: naiba Date: Mon, 30 Nov 2020 14:15:22 +0800 Subject: [PATCH] fix --- script/install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/install.sh b/script/install.sh index 7737e2a..38a6c9c 100755 --- a/script/install.sh +++ b/script/install.sh @@ -171,7 +171,6 @@ install_agent() { chmod 777 -R $NZ_AGENT_PATH echo -e "正在下载监控端" - cd $NZ_AGENT_PATH curl -L https://github.com/naiba/nezha/releases/latest/download/nezha-agent_linux_${os_arch}.tar.gz -o nezha-agent_linux_${os_arch}.tar.gz >/dev/null 2>&1 if [[ $? != 0 ]]; then echo -e "${red}Release 下载失败,请检查本机能否连接 github.com${plain}" @@ -191,7 +190,7 @@ install_agent() { modify_agent_config() { echo -e "> 修改Agent配置" - cd $NZ_DASHBOARD_PATH + 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}"