X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fauth-cass%2Fcass_init%2Fcmd.sh;h=b3d5292c893e4b0e19c08f72b1f6697419a30879;hb=235dd9ad5309cb8c348e15c66fb3884d39dbb107;hp=afb66774ccc83bc8161b8035dfa5e7231385a1de;hpb=1e3be601c78fa851333e51c6498713d1c412bd62;p=aaf%2Fauthz.git diff --git a/auth/auth-cass/cass_init/cmd.sh b/auth/auth-cass/cass_init/cmd.sh index afb66774..b3d5292c 100644 --- a/auth/auth-cass/cass_init/cmd.sh +++ b/auth/auth-cass/cass_init/cmd.sh @@ -32,7 +32,7 @@ function wait_start { function wait_cql { status wait for keyspace to be initialized for CNT in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do - if [ "`/usr/bin/cqlsh -e 'describe keyspaces' | grep authz`" == "" ]; then + if [ -n "$(/usr/bin/cqlsh -e 'describe keyspaces' | grep authz)" ]; then break else echo "Waiting for Keyspaces to be loaded... Sleep 10" @@ -130,6 +130,8 @@ case "$1" in # Make sure Keyspace is loaded wait_cql + + # Wait for Data load? status ready ;; onap)