1. 更改es初始化脚本输出追加为重定向

This commit is contained in:
haoqi
2022-09-15 17:13:58 +08:00
parent d11285cdbf
commit 0d9a6702c1
12 changed files with 1 additions and 1356 deletions

View File

@@ -1,7 +1,7 @@
echo "Wait ElasticSearch Start..."
while true
do
curl -s --connect-timeout 10 -o /dev/null http://${SERVER_ES_ADDRESS}/_cat/nodes >> /dev/null 2>&1
curl -s --connect-timeout 10 -o /dev/null http://${SERVER_ES_ADDRESS}/_cat/nodes > /dev/null 2>&1
if [ "$?" != "0" ];then
sleep 1s
else