diff --git a/source/src/main/java/io/wdd/source/shell/agent-bootup.sh b/source/src/main/java/io/wdd/source/shell/agent-bootup.sh index 69d715c..28492ea 100644 --- a/source/src/main/java/io/wdd/source/shell/agent-bootup.sh +++ b/source/src/main/java/io/wdd/source/shell/agent-bootup.sh @@ -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] diff --git a/source/src/main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh b/source/src/main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh index 6fd90bf..104f5b1 100644 --- a/source/src/main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh +++ b/source/src/main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh @@ -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"