aboutsummaryrefslogtreecommitdiffstats
path: root/distributions/msb-apigateway/src/assembly
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-10-31 18:04:30 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-10-31 18:04:35 +0800
commitde306a3575876fa56922bda8c20860f7341e87bd (patch)
tree54ead786519072c1a35e108aa0e0c6876021653b /distributions/msb-apigateway/src/assembly
parent3c947638b2231ba8af1e3a7e43966adb6020a133 (diff)
Conver DNS to IPv1.0.01.0.0-Amsterdam
Issue-Id: OOM-355 Change-Id: I75e9efffb82b5e4e27cc66d25ae49fbf304dda4b Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'distributions/msb-apigateway/src/assembly')
-rw-r--r--distributions/msb-apigateway/src/assembly/resources/startup4docker.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/distributions/msb-apigateway/src/assembly/resources/startup4docker.sh b/distributions/msb-apigateway/src/assembly/resources/startup4docker.sh
index b1dcb78..ce73600 100644
--- a/distributions/msb-apigateway/src/assembly/resources/startup4docker.sh
+++ b/distributions/msb-apigateway/src/assembly/resources/startup4docker.sh
@@ -19,7 +19,14 @@ DIRNAME=`dirname $0`
RUNHOME=`cd $DIRNAME/; pwd`
echo @RUNHOME@ $RUNHOME
-
+if echo $SDCLIENT_IP | grep -q '^[0-9.]\+$';
+ then
+ echo "SDCLIENT_IP is a IP"
+ else
+ echo "Convert SDCLIENT_IP to IP"
+ export SDCLIENT_IP=`getent hosts $SDCLIENT_IP | awk '{ print $1 }'`
+ echo $SDCLIENT_IP
+fi
echo "### Starting redis";
cd ./redis