From 81980cc47257afd7f348449ed6f8a0c9883f41b7 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Tue, 10 Oct 2023 15:16:56 +0800 Subject: [PATCH] =?UTF-8?q?[init]=20=E6=9B=B4=E6=96=B0Osaka=E8=8A=82?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/dataSources.local.xml | 2 +- Public/dep/wdd-server-host.txt | 4 ++++ Public/init-script-wdd.sh | 27 +++++++++++++++------- Public/lib/wdd-lib-clean.sh | 3 --- 部署应用/Oracle-Cloud/所有集群的IP网段.txt | 10 +++----- 5 files changed, 27 insertions(+), 19 deletions(-) diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index bc152f7..339453d 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -1,6 +1,6 @@ - + #@ diff --git a/Public/dep/wdd-server-host.txt b/Public/dep/wdd-server-host.txt index 69b45d1..87536fa 100644 --- a/Public/dep/wdd-server-host.txt +++ b/Public/dep/wdd-server-host.txt @@ -22,6 +22,10 @@ 140.238.52.228 tokyo-2 t2 +140.83.84.142 osaka-1 o1 + +140.83.58.96 osaka-2 o2 + 42.192.52.227 tc-sh 43.128.39.232 tc-hk diff --git a/Public/init-script-wdd.sh b/Public/init-script-wdd.sh index ca480de..f2cd1d0 100644 --- a/Public/init-script-wdd.sh +++ b/Public/init-script-wdd.sh @@ -108,13 +108,24 @@ shutdown_firewall() { add_octopus_host() { FunctionStart "添加Octopus自定义Hosts!" - if grep -q "140.238" >/etc/hosts - fi + cat >/etc/hosts<>/etc/hosts + if grep -q "140.238"