#!/bin/bash
+sudo chown onap:onap -R /service
+find /service -name '*.sh'|xargs chmod a+x
+
if [ -z "$SERVICE_IP" ]; then
export SERVICE_IP=`hostname -i`
fi
# Wait for MSB initialization
echo "Wait for MSB initialization"
-for i in {1..20}; do
- curl -sS -m 1 $MSB_ADDR > /dev/null && break
+for i in {1..5}; do
+ curl -sS -m 1 $MSB_PROTO://$MSB_ADDR/msb -k > /dev/null
+ res=$?
+ if [ $res -ne 0 ]; then
+ break
+ fi
sleep $i
done