summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortang peng <tang.peng5@zte.com.cn>2017-09-01 08:08:39 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-01 08:08:39 +0000
commitb408d29a14273dfb6f7c287016721e752d86b070 (patch)
treecf56fb7590999d53bc926d5892b3fc9617608971
parent65258b1f68fb74ba470b38690efed6d040112253 (diff)
parenta1a48152eb10ff7b1691acc689f776e380911100 (diff)
Merge "Add DB information into the shell script"
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index af1bb46..ea98482 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -31,5 +31,10 @@ echo @JAVA_OPTS@ $JAVA_OPTS
class_path="$main_path/:$main_path/holmes-rulemgt.jar"
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"
+
+./initDB.sh root rootpass 3306 `${URL_JDBC%:*}`
+
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.rulemgt.RuleActiveApp server "$main_path/conf/rulemgt.yml"