[ Agent ] [ Executor ] - agent启动脚本
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
OctopusAgentUrl=https://happybirthday.107421.xyz/octopus-agent/
|
||||
OctopusAgentShell=https://happybirthday.107421.xyz/octopus-agent/shell
|
||||
AgentConfigUrl=https://happybirthday.107421.xyz/agent-config/
|
||||
OctopusAgentShell=https://happybirthday.107421.xyz/shell
|
||||
AgentConfigUrl=https://happybirthday.107421.xyz/agent-config
|
||||
OctopusAgentPath=/octopus-agent/shell
|
||||
##### environment variables ######
|
||||
|
||||
@@ -281,7 +281,7 @@ CheckAndDownloadLatestVersion() {
|
||||
|
||||
for agentConfig in "${agentConfigFileList[@]}"; do
|
||||
colorEcho $BLUE "agent config file is => $agentConfig"
|
||||
wget -q "$AgentConfigUrl$agentConfig"
|
||||
wget -q "$AgentConfigUrl/$agentConfig"
|
||||
echo ""
|
||||
done
|
||||
|
||||
@@ -372,7 +372,10 @@ BootUPAgent() {
|
||||
colorEcho $BLUE "开始配置Agent启动的基础环境信息!"
|
||||
wget ${OctopusAgentShell}/octopus-env.sh -qO $OctopusAgentPath/lib/octopus-env.sh
|
||||
chmod +x $OctopusAgentPath/lib/octopus-env.sh
|
||||
echo ""
|
||||
colorEcho $BLUE "开始获取Agent的系统信息!"
|
||||
$OctopusAgentPath/lib/octopus-env.sh
|
||||
echo ""
|
||||
|
||||
colorEcho $BLUE "start to daemon the octopus agent"
|
||||
systemdAgent
|
||||
|
||||
Reference in New Issue
Block a user