[ agent ] [ boot ] - agent boot up procedure - 16
This commit is contained in:
@@ -199,7 +199,7 @@ DownloadAllFile() {
|
||||
colorEcho $BLUE "start to download octopus agent !"
|
||||
# check for latest version
|
||||
# download the lasted jar
|
||||
#wget https://happybirthday.107421.xyz/octopus-agent/octopus-agent-2022-12-21-16-00-00.jar -O /octopus-agent/agent.jar
|
||||
wget https://happybirthday.107421.xyz/octopus-agent/octopus-agent-2022-12-21-16-00-00.jar -O /octopus-agent/agent.jar
|
||||
|
||||
FunctionSuccess
|
||||
FunctionEnd
|
||||
@@ -280,7 +280,7 @@ LimitNPROC=65535
|
||||
User=root
|
||||
WorkingDirectory=/octopus-agent
|
||||
ExecStart=java -jar /octopus-agent/agent.jar ${JAVA_OPTS}
|
||||
ExecReload=
|
||||
ExecReload=source /etc/environment
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
||||
@@ -67,7 +67,7 @@ check_sys() {
|
||||
|
||||
# 判断系统的包管理工具 apt, yum, or zypper
|
||||
getPackageManageTool() {
|
||||
if [[ -n $(command -v apt-getMapper) ]]; then
|
||||
if [[ -n $(command -v apt-get) ]]; then
|
||||
CMD_INSTALL="apt-get -y -qq install"
|
||||
CMD_UPDATE="apt-get -qq update"
|
||||
CMD_REMOVE="apt-get -y remove"
|
||||
|
||||
Reference in New Issue
Block a user