Skip to content

Commit 4718501

Browse files
committed
flowmq: wait until tenant_mode is configured
1 parent a514c97 commit 4718501

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docker/node-flowmq/start-server.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44

55
echo "docker:docker@fdb:4500" > /etc/fdb.cluster
66

7-
while ! fdbcli -C /etc/fdb.cluster --exec "status" --timeout 1 ; do
8-
sleep 1;
7+
while true; do
8+
output=$(fdbcli -C /etc/fdb.cluster --exec "status json" --timeout 1 2>/dev/null)
9+
if [[ $? -eq 0 && "$output" == *'"tenant_mode" : "optional_experimental"'* ]]; then
10+
break
11+
fi
12+
sleep 1
913
done
1014

1115
MY_IP=$(hostname -I | head -n1 | awk '{print $1;}')

0 commit comments

Comments
 (0)