[init] 修改大量代码
This commit is contained in:
@@ -7,8 +7,8 @@
|
|||||||
docker_version=20.10.10
|
docker_version=20.10.10
|
||||||
oss_url_prefix="https://oss-s1.107421.xyz"
|
oss_url_prefix="https://oss-s1.107421.xyz"
|
||||||
modify_ssh_port=22333
|
modify_ssh_port=22333
|
||||||
octopus_agent_path=/usr/local/etc/octpus-agent/
|
octopus_agent_path=/usr/local/etc/octpus-agent
|
||||||
octopus_agent_url=https://happybirthday.107421.xyz/octopus-agent/
|
octopus_agent_url=https://happybirthday.107421.xyz/octopus-agent
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
@@ -797,8 +797,8 @@ SuccessExitStatus=143
|
|||||||
SyslogIdentifier=octopus-agent
|
SyslogIdentifier=octopus-agent
|
||||||
User=root
|
User=root
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/octopus-agent
|
WorkingDirectory=$octopus_agent_path
|
||||||
ExecStart=/octopus-agent/octopus-agent -agentServerInfoConf=/octopus-agent/octopus-agent.conf -version=shanghai
|
ExecStart=$octopus_agent_path/octopus-agent -agentServerInfoConf=$octopus_agent_path/octopus-agent.conf -version=shanghai
|
||||||
ExecStop=/bin/kill -15 \$MAINPID
|
ExecStop=/bin/kill -15 \$MAINPID
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
@@ -831,7 +831,7 @@ install_octopus_agent(){
|
|||||||
colorEchoBlue "octopus agent latest version is => [ $agent_latest_version ]"
|
colorEchoBlue "octopus agent latest version is => [ $agent_latest_version ]"
|
||||||
|
|
||||||
log "开始下载最新版本的Octopus Agent !"
|
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
|
SplieGreen
|
||||||
cp "$agent_latest_version" octopus-agent
|
cp "$agent_latest_version" octopus-agent
|
||||||
chmod +x octopus-agent
|
chmod +x octopus-agent
|
||||||
@@ -841,7 +841,7 @@ install_octopus_agent(){
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
log "开始下载 Octopus Agent Config !"
|
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 ""
|
echo ""
|
||||||
colorEchoBlue "---------------- ls the ${octopus_agent_path} ----------------------"
|
colorEchoBlue "---------------- ls the ${octopus_agent_path} ----------------------"
|
||||||
ls ${octopus_agent_path} | grep ".yaml"
|
ls ${octopus_agent_path} | grep ".yaml"
|
||||||
|
|||||||
Reference in New Issue
Block a user