From b7816d3ae7162d8d7c0a1fb0380647fa4440ac1b Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期四, 07 十一月 2019 20:01:26 +0800 Subject: [PATCH] fix nodeType --- controllers/es.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/es.go b/controllers/es.go index 5587110..8a1fa1d 100644 --- a/controllers/es.go +++ b/controllers/es.go @@ -412,7 +412,7 @@ if ip == hosts.OldIp { nodeType = tmpType } - if tmpType == "master" { + if tmpType == "涓昏妭鐐�" { newMasterHosts = append(newMasterHosts, ip) } if ip != hosts.OldIp { @@ -420,7 +420,7 @@ } } - if nodeType == "master" { + if nodeType == "涓昏妭鐐�" { str1 := "sed -ie 's/network.host: " + hosts.OldIp + "/network.host: " + hosts.NewIp + "/g' /opt/elasticsearch/config/elasticsearch.yml" msg1 := runScript(str1) if msg1 == "杩愯澶辫触" { -- Gitblit v1.8.0