Add DB information into the shell script 91/9891/2
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Fri, 1 Sep 2017 07:52:30 +0000 (15:52 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Fri, 1 Sep 2017 08:04:12 +0000 (16:04 +0800)
Add DB information before starting the service

Change-Id: I3b289719e2c9a7124e03b14a272ce583ef6de55a
Issue-ID: HOLMES-39
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
engine-d-standalone/src/main/assembly/bin/run.sh

index a1aa671..7a2a120 100644 (file)
@@ -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"