X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=engine-d-standalone%2Fsrc%2Fmain%2Fassembly%2Fbin%2Frun.sh;h=eeed056ba2a381ff4c1c93c17f5824fb57ae5fc4;hb=021187ca7c07e1a7227d894fe728965a190e5c8c;hp=6935858d8640e79fd93f0c51cea532d7eb2ec5cf;hpb=33dbc2cc1d7f74c8b9bfa82878e60ef9bd7b890c;p=holmes%2Fengine-management.git diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh index 6935858..eeed056 100644 --- a/engine-d-standalone/src/main/assembly/bin/run.sh +++ b/engine-d-standalone/src/main/assembly/bin/run.sh @@ -31,15 +31,21 @@ echo @JAVA_OPTS@ $JAVA_OPTS class_path="$main_path/:$main_path/holmes-engine-d.jar" echo @class_path@ $class_path +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:mysql://$URL_JDBC/holmes|" "$main_path/conf/engine-d.yml" +sed -i "s|url:.*|url: jdbc:postgresql://$URL_JDBC/holmes|" "$main_path/conf/engine-d.yml" export SERVICE_IP=`hostname -i` echo SERVICE_IP=${SERVICE_IP} -#ActiveMQ IP Configurtion +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"