From c0ae9bddeee7250ca99f45737e420c4ea3a4003d Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Fri, 15 Dec 2023 02:39:44 +0800 Subject: [PATCH] Update setup-tdengine.sh --- setup-tdengine.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup-tdengine.sh b/setup-tdengine.sh index 7efa3e3..61b36a3 100644 --- a/setup-tdengine.sh +++ b/setup-tdengine.sh @@ -9,10 +9,11 @@ then sudo systemctl start taoskeeper export TDENGINE_REST=$(hostname):6041/rest/sql count=0 + sleep 5 until curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "SELECT SERVER_STATUS();" $TDENGINE_REST do - sleep 1; - let count+=1; - if [ "$count" -lt 20 ]; then exit -1 ; fi + sleep 1 + let count+=1 + if [ "$count" -gt 20 ]; then exit -1 ; fi done fi