Fix vnfmgr instance_config.sh error 44/103344/2
authoryangyan <yangyanyj@chinamobile.com>
Mon, 9 Mar 2020 09:08:06 +0000 (17:08 +0800)
committerYan Yang <yangyanyj@chinamobile.com>
Mon, 9 Mar 2020 09:22:23 +0000 (09:22 +0000)
Change-Id: I98a8c2e873cee81fc39b57fc2e7f87d621496e1f
Issue-ID: VFC-1645
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
mgr/docker/instance_config.sh

index 54c4528..e1ad7e1 100755 (executable)
@@ -9,7 +9,7 @@ if [ $REG_TO_MSB_WHEN_START ]; then
 fi
 
 if [ $MSB_IP ]; then
-    sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/gvnfm/vnfmgr/mgr/mgr/pub/config/config.py
+    sed -i "s|MSB_SERVICE_IP = .*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/gvnfm/vnfmgr/mgr/mgr/pub/config/config.py
 fi
 
 if [ $MSB_PROTO ]; then
@@ -17,7 +17,7 @@ if [ $MSB_PROTO ]; then
 fi
 
 if [ $MSB_PORT ]; then
-    sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/gvnfm/vnfmgr/mgr/mgr/pub/config/config.py
+    sed -i "s|MSB_SERVICE_PORT = .*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/gvnfm/vnfmgr/mgr/mgr/pub/config/config.py
 fi
 
 if [ $SERVICE_IP ]; then