Add DB information before starting the service
Change-Id: I3cc5b81d932f28d97afeee5eacfe3a3f398ad4bb
Issue-ID: HOLMES-39
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
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"