From bbe429af4f2a038627eaff69b38a58dabc2f4661 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期二, 19 十一月 2019 14:52:34 +0800 Subject: [PATCH] update esSearch --- 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