diff options
author | Guangrong Fu <fu.guangrong@zte.com.cn> | 2021-12-02 20:05:22 +0800 |
---|---|---|
committer | Guangrong Fu <fu.guangrong@zte.com.cn> | 2021-12-02 20:05:22 +0800 |
commit | bad41756c627c14cc63ba1ec5c0eafcd801b7e6c (patch) | |
tree | a07e5e027573ecd207262405deb118cb34d8ed7d /engine-d-standalone/src/main/assembly | |
parent | b91b7e660f94fc1cf23e8f778472eeaa493116df (diff) |
Fixed some bugs
Issue-ID: HOLMES-488
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Change-Id: Iba20c7f3ab9bffe75169ee16b38629290df1211f
Diffstat (limited to 'engine-d-standalone/src/main/assembly')
-rw-r--r-- | engine-d-standalone/src/main/assembly/bin/run.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh index e5a09df..55f58dd 100644 --- a/engine-d-standalone/src/main/assembly/bin/run.sh +++ b/engine-d-standalone/src/main/assembly/bin/run.sh @@ -59,12 +59,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}:9102 - else - export HOSTNAME=${SERVICE_IP}:9102 - fi +if [ ! -z ${HOST_IP} ]; then + export HOSTNAME=${HOST_IP}:9102 +else + export HOSTNAME=${SERVICE_IP}:9102 fi export DB_PORT=5432 |