summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main/assembly/bin/run.sh
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2017-09-02 18:20:33 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2017-09-02 18:22:20 +0800
commit4a285e323ca7c4ae28afa41b46f6e0fbce4049ea (patch)
tree41c50c190d05f1fde5243757aa008bd1a5742095 /rulemgt-standalone/src/main/assembly/bin/run.sh
parent4637e303f4c1d65a463a920444a6274af3b78b39 (diff)
Add the IP of the MS into the script
Add the IP of the MS itself into the script Change-Id: I2b8d42f8774d3dac46c1116b37eeb75cc19ea631 Issue-ID: HOLMES-39 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin/run.sh')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index 143fbec..4b36f72 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -34,6 +34,10 @@ echo @class_path@ $class_path
sed -i "s|url:.*|url: jdbc:mysql://$URL_JDBC/holmes|" "$main_path/conf/rulemgt.yml"
sed -i "s|msbServerAddr:.*|msbServerAddr: http://$MSB_ADDR|" "$main_path/conf/rulemgt.yml"
+export SERVICE_IP=`hostname -i`
+echo SERVICE_IP=${SERVICE_IP}
+
+
./bin/initDB.sh root rootpass 3306 "${URL_JDBC%:*}"
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.rulemgt.RuleActiveApp server "$main_path/conf/rulemgt.yml"