[ server ] [ executor ] - optimize code -3

This commit is contained in:
zeaslity
2022-12-27 16:48:04 +08:00
parent 0c38361a3b
commit 62e6d7ed6b
7 changed files with 14 additions and 15 deletions

View File

@@ -200,8 +200,8 @@ DownloadAllFile() {
colorEcho $BLUE "start to download octopus agent !"
# check for latest version
# download the lasted jar
. ./lib/wdd-lib-os.s
h
. ./lib/wdd-lib-os.sh
CheckAndDownloadLatestVersion
FunctionSuccess
@@ -268,7 +268,7 @@ InstallJDKPackage() {
}
systemdAgent(){
local JAVA_OPTS="-Xms128m -Xmx512m"
local JAVA_OPTS="-Xms128m -Xmx512m -Dspring.spring.active=k3s -Dspring.cloud.nacos.config.extension-configs=[group=k3s,data-id=common-k3s.yaml]"
# https://www.baeldung.com/linux/run-java-application-as-service

View File

@@ -14,7 +14,7 @@ CheckAndDownloadLatestVersion
if [[ ! -f /octopus-agent/agent-reboot.sh ]]; then\
warn "agent-bootup.sh not exist! start to download !"
warn "agent-bootup.sh not exist! start to download !"
cd /octopus-agent
wget $RepoSourcePath/agent-reboot.sh
fi

View File

@@ -1,11 +1,11 @@
#!/bin/bash
#. /octopus-agent/shell/lib/wdd-lib-log.sh
#. /octopus-agent/shell/lib/wdd-lib-sys.sh
. /octopus-agent/shell/lib/wdd-lib-log.sh
. /octopus-agent/shell/lib/wdd-lib-sys.sh
. ./wdd-lib-log.sh
. ./wdd-lib-sys.sh
#. .wdd-lib-log.sh
#. .wdd-lib-sys.sh
hostArchVersion=""

View File

@@ -5,7 +5,7 @@
# shellcheck disable=SC1091
# Load Generic Libraries
. /octopus-agent/shell/lib/wdd-lib-log.sh
. /octopus-agent/shell/lib/wdd-lib-log.shwdd-lib-log.sh
# Functions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
. ./wdd-lib-log.sh
. /octopus-agent/shell/lib/wdd-lib-log.sh
OctopusAgentUrl=https://happybirthday.107421.xyz/octopus-agent/

View File

@@ -5,7 +5,6 @@
. /octopus-agent/shell/lib/wdd-lib-log.sh
# 判断命令是否存在
command_exists() {
command -v "$@" >/dev/null 2>&1