summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main/assembly/bin/run.sh
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-05 16:47:58 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-05 16:47:58 +0800
commit849fb02931f918c067bb34a1d45f81fc436341e7 (patch)
tree21905bd77a09d053184016aa97e58e46ce82566a /engine-d-standalone/src/main/assembly/bin/run.sh
parent5c79091a81d6849ccbe3258af54e0f96851a07d2 (diff)
Change the DB from MySQL to PostgreSQL
Change-Id: I654c872040b4c77f1abee1576bd3952a7ec56f79 Issue-ID: HOLMES-49 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/src/main/assembly/bin/run.sh')
-rw-r--r--engine-d-standalone/src/main/assembly/bin/run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh
index b33862d..59869ee 100644
--- a/engine-d-standalone/src/main/assembly/bin/run.sh
+++ b/engine-d-standalone/src/main/assembly/bin/run.sh
@@ -35,13 +35,13 @@ sed -i "s/activemq.username=.*/activemq.username=activemq/" /home/activemq/apach
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
+#ActiveMQ IP Configurations
sed -i "s|brokerIp:.*|brokerIp: $SERVICE_IP|" "$main_path/conf/engine-d.yml"
cat "$main_path/conf/engine-d.yml"