aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordyh <dengyuanhong@chinamobile.com>2020-04-27 21:01:43 +0800
committerdyh <dengyuanhong@chinamobile.com>2020-04-27 21:02:56 +0800
commit0a89108e137a56bc9fb55fe3b0e49459b6e403ee (patch)
tree3e588be920ad7244d0566ada443c48b9336b73fb
parentf2260263c4b8170aebae0ccc02bf4300d530dd70 (diff)
fix value of MSB address
Issue-ID: MODELING-356 Change-Id: I2f4d489167a847a293d34b2a97d9c9fecf25e6be Signed-off-by: dyh <dengyuanhong@chinamobile.com>
-rwxr-xr-xdocker/instance_config.sh5
1 files changed, 5 insertions, 0 deletions
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