[AGENT][INIT] 修复Agent启动的Bug
This commit is contained in:
@@ -64,10 +64,10 @@ public class XrayDBOperator {
|
|||||||
.stream()
|
.stream()
|
||||||
.map(
|
.map(
|
||||||
serverInfoVO -> {
|
serverInfoVO -> {
|
||||||
// 这里应该是 "Paripark Seoul KR"
|
// 这里应该是 "Paripark Seoul KR" 此种异常应该手动修正
|
||||||
String serverCity = serverInfoVO
|
String serverCity = serverInfoVO
|
||||||
.getLocation()
|
.getLocation()
|
||||||
.split(" ")[1];
|
.split(" ")[0];
|
||||||
int cityBitMapBase = ALL_SERVER_CITY_INDEX.get(serverCity) * 10;
|
int cityBitMapBase = ALL_SERVER_CITY_INDEX.get(serverCity) * 10;
|
||||||
int serverGraphNum = cityBitMapBase;
|
int serverGraphNum = cityBitMapBase;
|
||||||
for (int index = cityBitMapBase; index < cityBitMapBase + 10; index++) {
|
for (int index = cityBitMapBase; index < cityBitMapBase + 10; index++) {
|
||||||
|
|||||||
@@ -320,7 +320,7 @@ else
|
|||||||
machineNumber=99
|
machineNumber=99
|
||||||
fi
|
fi
|
||||||
cat >/etc/environment.d/octopus-agent.conf <<EOF
|
cat >/etc/environment.d/octopus-agent.conf <<EOF
|
||||||
serverName=${region}-${hostArch}-${machineNumber}
|
serverName=${city}-${hostArch}-${machineNumber}
|
||||||
serverIpPbV4=$public_ipv4
|
serverIpPbV4=$public_ipv4
|
||||||
serverIpInV4=
|
serverIpInV4=
|
||||||
serverIpPbV6=$public_ipv6
|
serverIpPbV6=$public_ipv6
|
||||||
|
|||||||
Reference in New Issue
Block a user