summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src
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-13 08:28:54 +0800
commit0800c8bb3b6d443d9c280000f8e79fbf380f9415 (patch)
tree3b60bfff66b8cf671c2a89101de5b666f7076086 /rulemgt-standalone/src
parente336b8bbdaa0364e5185ac5a0c6422e62820bc59 (diff)
Fixed the Start-up Failure in the Dualstack Env
Change-Id: I17d2a8cd5cba6276e131f67365143db1dda53114 Issue-ID: HOLMES-429 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src')
-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 69b5df5..3f32d4e 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -53,7 +53,7 @@ sed -i "s|password:.*|password: $JDBC_PASSWORD|" "$main_path/conf/rulemgt.yml"
sed -i "s|url:.*|url: jdbc:postgresql://$URL_JDBC/$DB_NAME|" "$main_path/conf/rulemgt.yml"
sed -i "s|msbServerAddr:.*|msbServerAddr: http://$MSB_ADDR|" "$main_path/conf/rulemgt.yml"
-export SERVICE_IP=`hostname -i`
+export SERVICE_IP=`hostname -i | awk '{print $1}'`
echo SERVICE_IP=${SERVICE_IP}
if [ ! -z ${TESTING} -a ${TESTING} = 1 ]; then