summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-08 14:48:14 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-04-08 14:52:37 +0800
commitc34f198cfe71e2e3e159ea10563c265faf571f6a (patch)
tree64951f81280c6c5a4230f0c0a1ac15663f298aa9
parent65e73c7bba990a207e2508b44c6849fed0e042aa (diff)
fix the bug of database migrate
Change-Id: Ie1938e8f5c648a9a1c9dee6866dda7168a50e48a Issue-ID: VFC-1339 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-xlcm/docker/instance_init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh
index ceaf0b20..88a9c4e0 100755
--- a/lcm/docker/instance_init.sh
+++ b/lcm/docker/instance_init.sh
@@ -27,5 +27,6 @@ GET_VNFM_DB="show databases like 'gvnfm';"
VNFM_DB=`mysql -u$MYSQL_ROOT_USER -p$MYSQL_ROOT_PASSWORD -P$MYSQL_PORT -h$MYSQL_IP -e "$GET_VNFM_DB"`
if [[ "$VNFM_DB" == "" ]]; then
create_database
- migrate_database
+
fi
+migrate_database