X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=bin%2Finstall_common_templates_to_helm.sh;fp=bin%2Finstall_common_templates_to_helm.sh;h=09d597c2747d8b7d7f7296f76bddef507baac248;hb=eeb03c8039bbce5f4d071ff8107961e1a89f49d6;hp=39f30b88f6285e4258f23d5826fa2178e5cd9dde;hpb=7e442d531452b33d4d5664e278531aaa86d9504f;p=ric-plt%2Fric-dep.git diff --git a/bin/install_common_templates_to_helm.sh b/bin/install_common_templates_to_helm.sh index 39f30b8..09d597c 100755 --- a/bin/install_common_templates_to_helm.sh +++ b/bin/install_common_templates_to_helm.sh @@ -25,12 +25,16 @@ nohup helm servecm --port=8879 --context-path=/charts --storage local --storage- yes EOF -echo "sleeping for 5 seconds" -sleep 5 - -echo "checking that servecm is working with this curl command" -curl --silent --output /dev/null http://127.0.0.1:8879/charts -echo "success="$? +CURL_CMD="curl --silent --output /dev/null http://127.0.0.1:8879/charts" +`${CURL_CMD}` +READY=$? +while [ ${READY} != 0 ]; do + echo "servecm not yet running. sleeping for 2 seconds" + sleep 2 + `${CURL_CMD}` + READY=$? +done +echo "servcm up and running" eval $(helm env |grep HELM_REPOSITORY_CACHE) echo ${HELM_REPOSITORY_CACHE}