diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-03 09:18:28 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-03 09:18:28 +0800 |
commit | d832753cefc69cb5813316c789319b1aaff2aba8 (patch) | |
tree | 0582965fbfbea0cb7fe10c8e9c73fa9202092c4d /lcm/resources/bin/initDB.sh | |
parent | e7891e6a0d35b2d427305fdfdc63aba6ea79a0cb (diff) |
Fix docker init db file
Change-Id: I8b4a04768d4816775606861cd2d598acc8939100
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm/resources/bin/initDB.sh')
-rwxr-xr-x | lcm/resources/bin/initDB.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lcm/resources/bin/initDB.sh b/lcm/resources/bin/initDB.sh index 764ac1ac..5386170b 100755 --- a/lcm/resources/bin/initDB.sh +++ b/lcm/resources/bin/initDB.sh @@ -26,10 +26,9 @@ sql_path=$HOME/../ mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -P$MYSQL_PORT -h$MYSQL_IP <$sql_path/dbscripts/mysql/onap-gvnfm-vnfres-createdb.sql sql_result=$? if [ $sql_result -ne 0 ] ; then - echo "failed to create gvnfm database" + echo "Failed to create gvnfm database" exit 1 -elif [ $sql_result -eq 0 ]; then - echo "create gvnfm database successfully" +else + echo "Create gvnfm database successfully" exit 0 fi - |