From fe25545fc16d1ede08130039ac1416f92164f051 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Tue, 24 Oct 2023 17:54:40 +0800 Subject: [PATCH] =?UTF-8?q?[init]=20=E4=BF=AE=E6=94=B9=E5=A4=A7=E9=87=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Public/init-script-wdd.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Public/init-script-wdd.sh b/Public/init-script-wdd.sh index a501295..54ad6ae 100644 --- a/Public/init-script-wdd.sh +++ b/Public/init-script-wdd.sh @@ -7,8 +7,8 @@ docker_version=20.10.10 oss_url_prefix="https://oss-s1.107421.xyz" modify_ssh_port=22333 -octopus_agent_path=/usr/local/etc/octpus-agent/ -octopus_agent_url=https://happybirthday.107421.xyz/octopus-agent/ +octopus_agent_path=/usr/local/etc/octpus-agent +octopus_agent_url=https://happybirthday.107421.xyz/octopus-agent echo "" echo "" @@ -797,8 +797,8 @@ SuccessExitStatus=143 SyslogIdentifier=octopus-agent User=root Type=simple -WorkingDirectory=/octopus-agent -ExecStart=/octopus-agent/octopus-agent -agentServerInfoConf=/octopus-agent/octopus-agent.conf -version=shanghai +WorkingDirectory=$octopus_agent_path +ExecStart=$octopus_agent_path/octopus-agent -agentServerInfoConf=$octopus_agent_path/octopus-agent.conf -version=shanghai ExecStop=/bin/kill -15 \$MAINPID [Install] @@ -831,7 +831,7 @@ install_octopus_agent(){ colorEchoBlue "octopus agent latest version is => [ $agent_latest_version ]" log "开始下载最新版本的Octopus Agent !" - wget "${octopus_agent_url}${agent_latest_version}" -qO "${octopus_agent_path}${agent_latest_version}" + wget "${octopus_agent_url}/${agent_latest_version}" -qO "${octopus_agent_path}/${agent_latest_version}" SplieGreen cp "$agent_latest_version" octopus-agent chmod +x octopus-agent @@ -841,7 +841,7 @@ install_octopus_agent(){ echo "" log "开始下载 Octopus Agent Config !" - wget "${oss_url_prefix}/octopus-agent.yaml" -qO "${octopus_agent_path}octopus-agent.yaml" + wget "${oss_url_prefix}/octopus-agent.yaml" -qO "${octopus_agent_path}/octopus-agent.yaml" echo "" colorEchoBlue "---------------- ls the ${octopus_agent_path} ----------------------" ls ${octopus_agent_path} | grep ".yaml"