[init] 修改大量代码
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user