summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2021-04-07 10:18:09 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2021-04-07 10:18:09 +0800
commite79e3198e01b4418a4c0eca046c1790be366d5dd (patch)
treeb06ab34b7e65cda8af3b924131da683d51b67e75 /rulemgt-standalone/src/main
parent953912e40572001f830af4483d71a99e63578b18 (diff)
Fixed the Start-up Failure in the Dualstack Env1.3.3
Change-Id: I17d2a8cd5cba6276e131f67365143db1dda53114 Issue-ID: HOLMES-429 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src/main')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index b710217..983ed62 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -57,7 +57,7 @@ else
sed -i "s|url:.*|url: jdbc:postgresql://$URL_JDBC/$DB_NAME|" "$main_path/conf/rulemgt.yml"
fi
-export SERVICE_IP=`hostname -i`
+export SERVICE_IP=`hostname -i | awk '{print $1}'`
echo SERVICE_IP=${SERVICE_IP}
if [ ! -z ${TESTING} ] && [ ${TESTING} = 1 ]; then