blob: 11bf6a15e24a18ee29034c3cb4423c97e6ecfd07 [file] [log] [blame]
Instrumental97083ef2018-04-25 15:22:38 -05001#!/bin/bash
Instrumental1e3be602018-10-03 19:40:44 -05002#
3# This is only called from HEAT, as it needs a single check and wait for Cassandra to be ready
4#
Instrumentalbc299c02018-09-25 06:42:31 -05005. drun.sh
Instrumental4ad47632018-07-13 15:49:26 -05006
Instrumental1e3be602018-10-03 19:40:44 -05007echo "Waiting for Cass to be initialized"
8for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
Instrumental94053612018-10-08 11:27:18 -05009 $DOCKER exec -it aaf_cass bash aaf_cmd wait 2> /dev/null
Instrumental1e3be602018-10-03 19:40:44 -050010 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
17done
18
Instrumentala05704f2018-09-17 13:58:02 -050019