summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main/assembly/bin
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-10-12 16:44:12 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-10-12 16:44:12 +0800
commita8f1131fb60608e0ba687a1ec6ce256f38c07d2d (patch)
treeeeb0d54ec16c412c4638118a015887fb59f959e4 /engine-d-standalone/src/main/assembly/bin
parent0dae31f0a9aa31a62d5c38c83034065b650d3df8 (diff)
Enable specifying the Host IP using Script
Change-Id: I5e2564d3c23c5bb0b30bad2b0cdede9c83694956 Issue-ID: HOLMES-73 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/src/main/assembly/bin')
-rw-r--r--engine-d-standalone/src/main/assembly/bin/run.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh
index c48bc57..4d8dff5 100644
--- a/engine-d-standalone/src/main/assembly/bin/run.sh
+++ b/engine-d-standalone/src/main/assembly/bin/run.sh
@@ -43,8 +43,12 @@ sed -i "s|url:.*|url: jdbc:postgresql://$URL_JDBC/holmes|" "$main_path/conf/engi
export SERVICE_IP=`hostname -i`
echo SERVICE_IP=${SERVICE_IP}
-if [ ${TESTING}==1 ]; then
- export HOSTNAME=${SERVICE_IP}:9102
+if [ ! -z ${TESTING} ] && [ ${TESTING} == 1 ]; then
+ if [ ! -z ${HOST_IP}]; then
+ export HOSTNAME=${HOST_IP}:9102
+ else
+ export HOSTNAME=${SERVICE_IP}:9102
+ fi
fi
#ActiveMQ IP Configurations