github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/tdengine/scripts/taos-adapter-check.sh.tpl (about)

     1  #!/bin/sh
     2  set -ex
     3  echo "Waiting for taosAdapter service to be ready..."
     4  until curl -L -u ${TAOS_ADAPTER_USERNAME}:${TAOS_ADAPTER_PASSWORD}   -d "select name, ntables, status from information_schema.ins_databases;"   localhost:${TAOS_ADAPTER_PORT}/rest/sql; do sleep 5; done
     5  echo "Start taosAdapter service succeeded!"