summaryrefslogtreecommitdiffstats
path: root/standalone/src/main/assembly/bin/run.sh
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2019-04-11 07:30:56 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-11 07:30:56 +0000
commitb86524dbd0d7ed1831031f682e8c3a081d57ad1f (patch)
tree2f016112b8a7d83b0a7c087e5bb400c774ca8d9e /standalone/src/main/assembly/bin/run.sh
parentee6a1d79c2ed77e152cfca356b97d365bf8f525e (diff)
parent07938ced8696fd185b896bae13a24cf5b77ccda4 (diff)
Merge "Fix initDB script execution error"
Diffstat (limited to 'standalone/src/main/assembly/bin/run.sh')
-rw-r--r--standalone/src/main/assembly/bin/run.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/standalone/src/main/assembly/bin/run.sh b/standalone/src/main/assembly/bin/run.sh
index 66e0749b..57b49897 100644
--- a/standalone/src/main/assembly/bin/run.sh
+++ b/standalone/src/main/assembly/bin/run.sh
@@ -22,10 +22,11 @@ echo "Starting postgreSQL..."
service postgresql start
sleep 10
-echo "running usecase-ui database init script..."
+echo "usecase-ui database init script start..."
dbScript="$main_path/resources/bin/initDB.sh"
chmod 755 $dbScript
-$dbScript postgres postgres 127.0.0.1 5432 postgres
+source $dbScript postgres postgres 127.0.0.1 5432 postgres
+echo "usecase-ui database init script finished normally..."
JAVA_PATH="$JAVA_HOME/bin/java"
JAVA_OPTS="-Xms50m -Xmx128m"