From: Guangrong Fu Date: Fri, 1 Sep 2017 07:52:30 +0000 (+0800) Subject: Add DB information into the shell script X-Git-Tag: v1.0.0~56 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Fengine-management.git;a=commitdiff_plain;h=3347c066575bd9165627b7a01499e6c9c84af709 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 --- 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"