Modify global variable substitution 28/102128/2
authoryangyan <yangyanyj@chinamobile.com>
Fri, 21 Feb 2020 08:52:22 +0000 (16:52 +0800)
committerYan Yang <yangyanyj@chinamobile.com>
Fri, 21 Feb 2020 08:53:16 +0000 (08:53 +0000)
Change-Id: I6fcd4f37b804cd0661b67190e45b02d1c7d0b522
Issue-ID: VFC-1595
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
res/docker/instance_config.sh

index 6860429..6ed2988 100755 (executable)
@@ -9,11 +9,11 @@ if [ $MSB_PROTO ]; then
 fi
 
 if [ $MSB_IP ]; then
-    sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
+    sed -i "s|MSB_SERVICE_IP = .*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
 fi
 
 if [ $MSB_PORT ]; then
-    sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
+    sed -i "s|MSB_SERVICE_PORT = .*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
 fi
 
 if [ $SERVICE_IP ]; then