aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-08 14:45:39 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-04-08 14:45:50 +0800
commitbf4b8692dbddbae34713ea029fdc13e2a8bf2a60 (patch)
treee8093f582e4a194bc0a63932e5a331eacad07c2f /docker
parent111445287e9227410f634706666066615f2da9a7 (diff)
fix the bug of database migrate
Change-Id: I327c15c8116f9d262f7e6ae2951001bf4b3c8f45 Issue-ID: VFC-1339 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/instance_init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
index a3ca889c..7dde8c72 100755
--- a/docker/instance_init.sh
+++ b/docker/instance_init.sh
@@ -28,5 +28,6 @@ GET_CATALOG_DB="show databases like 'nfvocatalog';"
CATALOG_DB=`mysql -u$MYSQL_ROOT_USER -p$MYSQL_ROOT_PASSWORD -P$MYSQL_PORT -h$MYSQL_IP -e "GET_CATALOG_DB"`
if [[ "$CATALOG_DB" == "" ]]; then
create_database
- migrate_database
+
fi
+migrate_database