Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Nov 30, 2020
1 parent 0a711f2 commit a0a3ee3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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}"
Expand Down

0 comments on commit a0a3ee3

Please sign in to comment.