Code Review
/
holmes
/
engine-management.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix the Grammatical Error in the Script
[holmes/engine-management.git]
/
engine-d-standalone
/
src
/
main
/
assembly
/
bin
/
run.sh
diff --git
a/engine-d-standalone/src/main/assembly/bin/run.sh
b/engine-d-standalone/src/main/assembly/bin/run.sh
index
9948a04
..
c48bc57
100644
(file)
--- a/
engine-d-standalone/src/main/assembly/bin/run.sh
+++ b/
engine-d-standalone/src/main/assembly/bin/run.sh
@@
-1,3
+1,5
@@
+#!/bin/bash
+
#
# Copyright 2017 ZTE Corporation.
#
#
# Copyright 2017 ZTE Corporation.
#
@@
-31,13
+33,25
@@
echo @JAVA_OPTS@ $JAVA_OPTS
class_path="$main_path/:$main_path/holmes-engine-d.jar"
echo @class_path@ $class_path
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"
+sed -i "s/activemq.username=.*/activemq.username=activemq/" /home/activemq/apache-activemq-5.9.0/conf/credentials.properties
+sed -i "s/activemq.password=.*/activemq.password=v1/" /home/activemq/apache-activemq-5.9.0/conf/credentials.properties
+/home/activemq/apache-activemq-5.9.0/bin/activemq start
+
+sed -i "s|url:.*|url: jdbc:postgresql://$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"
export SERVICE_IP=`hostname -i`
echo SERVICE_IP=${SERVICE_IP}
export SERVICE_IP=`hostname -i`
echo SERVICE_IP=${SERVICE_IP}
+if [ ${TESTING}==1 ]; then
+ export HOSTNAME=${SERVICE_IP}:9102
+fi
+
+#ActiveMQ IP Configurations
+sed -i "s|brokerIp:.*|brokerIp: $SERVICE_IP|" "$main_path/conf/engine-d.yml"
+
+cat "$main_path/conf/engine-d.yml"
+
+
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.engine.EngineDActiveApp server "$main_path/conf/engine-d.yml"
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.engine.EngineDActiveApp server "$main_path/conf/engine-d.yml"