summaryrefslogtreecommitdiffstats
path: root/standalone/src/main/assembly/resources/bin
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-04-20 12:06:46 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-04-20 12:06:47 +0800
commit19afe18cf5a8d6c2d6fc86fa6f643911b191771e (patch)
treed7322994272ec1b873c7e0ac755e5a4c248f3be2 /standalone/src/main/assembly/resources/bin
parente804d7764e58ceb10fb7a931b0257cc42b76e18e (diff)
Add usecase-ui-server database init data
Change-Id: I23cdfcb2b0ef7ddd4dd77529a6ed09b9eb9afbd3 Issue-ID: USECASEUI-236 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'standalone/src/main/assembly/resources/bin')
-rw-r--r--standalone/src/main/assembly/resources/bin/initDB.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/standalone/src/main/assembly/resources/bin/initDB.sh b/standalone/src/main/assembly/resources/bin/initDB.sh
index ad9dac27..e9922fb2 100644
--- a/standalone/src/main/assembly/resources/bin/initDB.sh
+++ b/standalone/src/main/assembly/resources/bin/initDB.sh
@@ -47,3 +47,13 @@ if [ $sql_result -ne 0 ]; then
else
echo "usecase-ui tables created successfully!"
fi
+
+echo "start insert initial data into uui-server database..."
+psql "host=$host port=$port user=$user_uui password=$user_uui dbname=$user_uui" -f $dbscripts_path/uui_init_data.sql
+sql_result=$?
+if [ $sql_result -ne 0 ]; then
+ echo "failed to insert initial data!"
+ exit 1
+else
+ echo "usecase-ui database initial data import succeed!"
+fi