From 3347c066575bd9165627b7a01499e6c9c84af709 Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Fri, 1 Sep 2017 15:52:30 +0800 Subject: 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 --- engine-d-standalone/src/main/assembly/bin/run.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine-d-standalone/src') 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" -- cgit 1.2.3-korg