aboutsummaryrefslogtreecommitdiffstats
path: root/docker/instance_config.sh
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-08-02 16:44:11 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-08-02 16:44:19 +0800
commit529ef4bd2a9c8b57475226cdcb5d278c22509a1e (patch)
treec46e8d57439c666c6de40ba627e52d45c02ad48a /docker/instance_config.sh
parent88059a9fda631178db0e0719946ae01da1d275de (diff)
Change the MSB registration switch to the environment variable acquisition mode
Change-Id: I844c01dae1a7e361e7f7340d6b62cb56c40c87fa Issue-ID: VFC-1466 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker/instance_config.sh')
-rwxr-xr-xdocker/instance_config.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/instance_config.sh b/docker/instance_config.sh
index 099b0082..70a3cc6a 100755
--- a/docker/instance_config.sh
+++ b/docker/instance_config.sh
@@ -6,6 +6,12 @@ MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2`
MR_IP=`echo $MR_ADDR | cut -d: -f 1`
MR_PORT=`echo $MR_ADDR | cut -d: -f 2`
+REG_TO_MSB_WHEN_START=$REG_TO_MSB_WHEN_START
+
+if [ $REG_TO_MSB_WHEN_START ]; then
+ sed -i "s|REG_TO_MSB_WHEN_START = .*|REG_TO_MSB_WHEN_START = '$REG_TO_MSB_WHEN_START'|" vfc/nfvo/lcm/lcm/pub/config/config.py
+fi
+
if [ $MSB_IP ]; then
sed -i "s|MSB_SERVICE_IP = .*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py
fi