[ server ] [ executor ] - redis stream listener container all procedure -1
This commit is contained in:
@@ -13,7 +13,6 @@ DependLibFiles=(
|
||||
wdd-lib-sys.sh
|
||||
)
|
||||
|
||||
|
||||
OctopusAgentUrl=https://happybirthday.107421.xyz/octopus-agent/
|
||||
|
||||
RepoSourcePath=https://raw.githubusercontent.com/zeaslity/ProjectOctopus/main/source/src/main/java/io/wdd/source/shell
|
||||
@@ -216,7 +215,6 @@ DownloadAllFile() {
|
||||
. ./lib/wdd-lib-os.sh
|
||||
CheckAndDownloadLatestVersion
|
||||
|
||||
|
||||
FunctionSuccess
|
||||
FunctionEnd
|
||||
|
||||
@@ -230,11 +228,6 @@ ModifySystemConfig(){
|
||||
## 配置内核参数
|
||||
cat >/etc/sysctl.d/k8s.conf <<EOF
|
||||
net.ipv4.ip_forward = 1
|
||||
net.bridge.bridge-nf-call-ip6tables = 1
|
||||
net.bridge.bridge-nf-call-iptables = 1
|
||||
net.ipv6.conf.all.disable_ipv6 = 1
|
||||
net.ipv6.conf.default.disable_ipv6 = 1
|
||||
net.ipv6.conf.lo.disable_ipv6 = 1
|
||||
net.ipv6.conf.all.forwarding = 1
|
||||
EOF
|
||||
|
||||
@@ -343,7 +336,7 @@ BootUPAgent(){
|
||||
chmod +x $OctopusAgentPath/lib/wdd-lib-env.sh
|
||||
$OctopusAgentPath/lib/wdd-lib-env.sh
|
||||
|
||||
colorEcho $BLUE "start to daemon the agent pid"
|
||||
colorEcho $BLUE "start to daemon the octopus agent"
|
||||
systemdAgent
|
||||
|
||||
colorEcho $BLUE "start the agent!"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
. /octopus-agent/shell/lib/wdd-lib-sys.sh
|
||||
|
||||
|
||||
log "[Octopus Agent Restart !]"
|
||||
log "Octopus Agent Restart !"
|
||||
|
||||
FunctionStart
|
||||
|
||||
|
||||
@@ -11,13 +11,13 @@ RepoSourcePath=https://raw.githubusercontent.com/zeaslity/ProjectOctopus/main/so
|
||||
|
||||
CheckAndDownloadLatestVersion
|
||||
|
||||
if [[ ! -f /octopus-agent/shell/agent-reboot.sh ]]; then\
|
||||
if [[ ! -f /octopus-agent/shell/agent-restart.sh ]]; then
|
||||
warn "agent-bootup.sh not exist! start to download !"
|
||||
cd /octopus-agent/shell
|
||||
wget $RepoSourcePath/agent-reboot.sh
|
||||
wget $RepoSourcePath/agent-restart.sh
|
||||
fi
|
||||
|
||||
|
||||
log "start to reboot the octopus agent !"
|
||||
chmod +x /octopus-agent/shell/agent-reboot.sh
|
||||
/octopus-agent/shell/agent-reboot.sh
|
||||
log "start to restart the octopus agent !"
|
||||
chmod +x /octopus-agent/shell/agent-restart.sh
|
||||
/octopus-agent/shell/agent-restart.sh
|
||||
|
||||
@@ -12,16 +12,14 @@ CheckAndDownloadLatestVersion(){
|
||||
local latestVersion=$(curl $OctopusAgentUrl | grep -v h1 | grep "a href=" | awk '{print$2}' |cut -d">" -f2 | cut -d"<" -f1)
|
||||
|
||||
log "octopus agent latest version is => [ $latestVersion ]"
|
||||
|
||||
echo ""
|
||||
rm -rf /octopus-agent/*.jar
|
||||
cd /octopus-agent
|
||||
|
||||
log "start to download the latest version !"
|
||||
|
||||
wget "$OctopusAgentUrl$latestVersion"
|
||||
cp "$latestVersion" agent.jar
|
||||
|
||||
log ""
|
||||
echo ""
|
||||
echo ""
|
||||
log "----------------------------------------------"
|
||||
ls /octopus-agent/ | grep jar
|
||||
|
||||
Reference in New Issue
Block a user