summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main/assembly/bin/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin/run.sh')
-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