Fix initDB script execution error 18/85018/1
authorzhangab <zhanganbing@chinamobile.com>
Thu, 11 Apr 2019 07:08:22 +0000 (15:08 +0800)
committerzhangab <zhanganbing@chinamobile.com>
Thu, 11 Apr 2019 07:08:25 +0000 (15:08 +0800)
Change-Id: Ic80aaa08acd1dcb2ab228fd12da4f992c7bba048
Issue-ID: USECASEUI-256
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
standalone/src/main/assembly/bin/run.sh

index 66e0749..57b4989 100644 (file)
@@ -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"