aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2020-02-21 12:56:29 +0800
committeryangyan <yangyanyj@chinamobile.com>2020-02-21 12:56:34 +0800
commit35d32acd1d84e631d4e0e4ccaf14bd2041fcb4d8 (patch)
tree61392221a253bdda723bd71caeb9f5abee5f1423
parent4c52f89ab1fb1d05bd6884f880aac08f4fe753cb (diff)
Modify global variable substitution
Change-Id: I85fa7c1b0956e234caa8fdb1bc1fb1763ad02e0a Issue-ID: VFC-1595 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-xdocker/instance_config.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/instance_config.sh b/docker/instance_config.sh
index 32c6395d..9a2e575e 100755
--- a/docker/instance_config.sh
+++ b/docker/instance_config.sh
@@ -5,7 +5,7 @@ MSB_IP=`echo $MSB_ADDR | cut -d: -f 1`
MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2`
if [ $MSB_IP ]; then
- sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/catalog/catalog/pub/config/config.py
+ sed -i "s|MSB_SERVICE_IP = .*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/catalog/catalog/pub/config/config.py
fi
if [ $MSB_PROTO ]; then
@@ -13,7 +13,7 @@ if [ $MSB_PROTO ]; then
fi
if [ $MSB_PORT ]; then
- sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/catalog/catalog/pub/config/config.py
+ sed -i "s|MSB_SERVICE_PORT = .*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/catalog/catalog/pub/config/config.py
fi
if [ $SERVICE_IP ]; then