sunty
2019-11-07 b7816d3ae7162d8d7c0a1fb0380647fa4440ac1b
fix nodeType
1个文件已修改
4 ■■■■ 已修改文件
controllers/es.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 == "运行失败" {