aboutsummaryrefslogtreecommitdiffstats
path: root/distributions
diff options
context:
space:
mode:
Diffstat (limited to 'distributions')
-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