X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=esr-core%2Fdistribution%2Fstandalone%2Fsrc%2Fmain%2Fassembly%2Fbin%2FinitDB.sh;h=60f7be04c78f816e0d6e7b15426b73d6d9a9f16a;hb=03cb28b3dfabbf7c49c645dde29a74fd5e60bbf8;hp=eb2dc240589b3fe058ca1a65cf5d2b4365888f91;hpb=aba957d99b0d0d21c77d80efe98a3450b6635c1a;p=aai%2Fesr-server.git diff --git a/esr-core/distribution/standalone/src/main/assembly/bin/initDB.sh b/esr-core/distribution/standalone/src/main/assembly/bin/initDB.sh index eb2dc24..60f7be0 100644 --- a/esr-core/distribution/standalone/src/main/assembly/bin/initDB.sh +++ b/esr-core/distribution/standalone/src/main/assembly/bin/initDB.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2016 ZTE Corporation. +# Copyright 2016-2017 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,14 +21,14 @@ user=$1 password=$2 port=$3 host=$4 -echo "start init extsys db" +echo "start init esr db" main_path=$HOME/../ -mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/openo-common-extsys-createobj.sql +mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/onap-aai-esr-createobj.sql sql_result=$? if [ $sql_result != 0 ] ; then - echo "failed to init extsys database!" + echo "failed to init esr database!" exit 1 fi -echo "init extsys database success!" +echo "init esr database success!" exit 0