summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-01 15:52:30 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-01 16:04:12 +0800
commit3347c066575bd9165627b7a01499e6c9c84af709 (patch)
tree75f34b98b062e67465a78bb175eda65c3a942558 /engine-d-standalone/src/main
parente16a7b972f291b8048e2961e69fa4da78d15c3b4 (diff)
Add DB information into the shell script
Add DB information before starting the service Change-Id: I3b289719e2c9a7124e03b14a272ce583ef6de55a Issue-ID: HOLMES-39 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/src/main')
-rw-r--r--engine-d-standalone/src/main/assembly/bin/run.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh
index a1aa671..7a2a120 100644
--- a/engine-d-standalone/src/main/assembly/bin/run.sh
+++ b/engine-d-standalone/src/main/assembly/bin/run.sh
@@ -31,5 +31,10 @@ echo @JAVA_OPTS@ $JAVA_OPTS
class_path="$main_path/:$main_path/holmes-engine-d.jar"
echo @class_path@ $class_path
+sed -i "s|url:.*|url: jdbc:mysql://$URL_JDBC/holmes|" "$main_path/conf/engine-d.yml"
+
+#ActiveMQ IP Configurtion
+#sed -i "s|brokerIp:.*|brokerIp: $BROKER_IP|" "$main_path/conf/engine-d.yml"
+
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.engine.EngineDActiveApp server "$main_path/conf/engine-d.yml"