From: dyh Date: Mon, 27 Apr 2020 13:01:43 +0000 (+0800) Subject: fix value of MSB address X-Git-Tag: 1.0.6~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=modeling%2Fetsicatalog.git;a=commitdiff_plain;h=0a89108e137a56bc9fb55fe3b0e49459b6e403ee fix value of MSB address Issue-ID: MODELING-356 Change-Id: I2f4d489167a847a293d34b2a97d9c9fecf25e6be Signed-off-by: dyh --- diff --git a/docker/instance_config.sh b/docker/instance_config.sh index 090789b..e312cf3 100755 --- a/docker/instance_config.sh +++ b/docker/instance_config.sh @@ -1,9 +1,14 @@ #!/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` # modeling/etsicatalog +if [ $MSB_PROTO ]; then + sed -i "s|MSB_SERVICE_PROTOCOL = .*|MSB_SERVICE_PROTOCOL = '$MSB_PROTO'|" modeling/etsicatalog/catalog/pub/config/config.py +fi + if [ $MSB_IP ]; then sed -i "s|MSB_SERVICE_IP = .*|MSB_SERVICE_IP = '$MSB_IP'|" modeling/etsicatalog/catalog/pub/config/config.py fi