3e5098c0a82acf4edfc26444fe946d4f1958cb27
[aaf/authz.git] / auth / auth-cass / docker / dinstall.sh
1 #!/bin/bash 
2 #
3 # This is only called from HEAT, as it needs a single check and wait for Cassandra to be ready
4 #
5 . drun.sh $@
6
7 echo "Waiting for Cass to be initialized"
8 for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
9   $DOCKER exec -it aaf_cass bash aaf_cmd wait 2> /dev/null
10   if [ "$?" -ne "0" ]; then
11     echo "Container not ready... Sleep 10"
12     sleep 10
13   else
14     echo "aaf_cass is ready"
15     break
16   fi 
17 done
18
19