Change the value of the password after obtaining encryption and fix some typo error...
[vfc/gvnfm/vnflcm.git] / lcm / docker / docker-entrypoint.sh
index ed41382..0e1abc9 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+find  /service -name '*.sh'|xargs chmod a+x
+
 if [ -z "$SERVICE_IP" ]; then
     export SERVICE_IP=`hostname -i`
 fi
@@ -20,7 +22,11 @@ echo "MYSQL_ADDR=$MYSQL_ADDR"
 # Wait for MSB initialization
 echo "Wait for MSB initialization"
 for i in {1..5}; do
-    curl -sS -m 1 $MSB_ADDR > /dev/null && break
+    curl -sS -m 1 $MSB_PROTO://$MSB_ADDR/msb -k > /dev/null
+    res=$?
+    if [ $res -ne 0 ]; then
+        break
+    fi
     sleep $i
 done