summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2021-12-02 20:04:47 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2021-12-02 20:04:47 +0800
commit942ce2677d26169697f75f136e2b6f4c0e6ab147 (patch)
tree06d369ef194931e7ad7df079170a604891de53fc /rulemgt-standalone/src
parent7dedc836781b221c3a1945a8247be8ed23248a1e (diff)
Fixed some bugs
Issue-ID: HOLMES-488 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn> Change-Id: I7c1e848d3ee8225e8240da7528c8410fe9ad7efe
Diffstat (limited to 'rulemgt-standalone/src')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index d1b80ab..1db65ca 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -60,12 +60,10 @@ fi
export SERVICE_IP=`hostname -i | awk '{print $1}'`
echo SERVICE_IP=${SERVICE_IP}
-if [ ! -z ${TESTING} ] && [ ${TESTING} = 1 ]; then
- if [ ! -z ${HOST_IP} ]; then
- export HOSTNAME=${HOST_IP}:9101
- else
- export HOSTNAME=${SERVICE_IP}:9101
- fi
+if [ ! -z ${HOST_IP} ]; then
+ export HOSTNAME=${HOST_IP}:9101
+else
+ export HOSTNAME=${SERVICE_IP}:9101
fi
export DB_PORT=5432