Skip to content

Commit

Permalink
Update setup-tdengine.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
maikebing authored Dec 14, 2023
1 parent b9926a0 commit c0ae9bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup-tdengine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c0ae9bd

Please sign in to comment.