summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main/assembly/bin
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index bad26c7..357c7c9 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -39,8 +39,12 @@ sed -i "s|msbServerAddr:.*|msbServerAddr: http://$MSB_ADDR|" "$main_path/conf/ru
export SERVICE_IP=`hostname -i`
echo SERVICE_IP=${SERVICE_IP}
-if [ ${TESTING}==1 ]; then
- export HOSTNAME=${SERVICE_IP}:9101
+if [ ! -z ${TESTING} ] && [ ${TESTING} == 1 ]; then
+ if [ ! -z ${HOST_IP}]; then
+ export HOSTNAME=${HOST_IP}:9101
+ else
+ export HOSTNAME=${SERVICE_IP}:9101
+ fi
fi