summaryrefslogtreecommitdiffstats
path: root/res/docker/instance_config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'res/docker/instance_config.sh')
-rwxr-xr-xres/docker/instance_config.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/docker/instance_config.sh b/res/docker/instance_config.sh
index 6ed2988..c770a2b 100755
--- a/res/docker/instance_config.sh
+++ b/res/docker/instance_config.sh
@@ -3,6 +3,10 @@
MSB_PROTO=`echo $MSB_PROTO`
MSB_IP=`echo $MSB_ADDR | cut -d: -f 1`
MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2`
+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/gvnfm/vnfres/res/res/pub/config/config.py
+fi
if [ $MSB_PROTO ]; then
sed -i "s|MSB_SERVICE_PROTOCOL = .*|MSB_SERVICE_PROTOCOL = '$MSB_PROTO'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py