+#!/bin/bash
+
#
# Copyright 2017 ZTE Corporation.
#
export SERVICE_IP=`hostname -i`
echo SERVICE_IP=${SERVICE_IP}
-if [ ${TESTING} == 1 ]
- 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