diff options
Diffstat (limited to 'res/docker/instance_config.sh')
-rwxr-xr-x | res/docker/instance_config.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/res/docker/instance_config.sh b/res/docker/instance_config.sh index 5ad6b9f..6860429 100755 --- a/res/docker/instance_config.sh +++ b/res/docker/instance_config.sh @@ -1,8 +1,13 @@ #!/bin/bash +MSB_PROTO=`echo $MSB_PROTO` MSB_IP=`echo $MSB_ADDR | cut -d: -f 1` MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2` +if [ $MSB_PROTO ]; then + sed -i "s|MSB_SERVICE_PROTOCOL = .*|MSB_SERVICE_PROTOCOL = '$MSB_PROTO'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py +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 fi |