From 7bda307b801ca52bfd6693b4115530647b5c58b0 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Wed, 3 Apr 2019 10:13:09 +0800 Subject: Fix docker init file Change-Id: I851b8197247b812b5de5875aaafa5bb4ec4167cb Issue-ID: VFC-1306 Signed-off-by: fujinhua --- lcm/docker/instance_init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lcm/docker') diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh index b2c82cbb..49c8633c 100755 --- a/lcm/docker/instance_init.sh +++ b/lcm/docker/instance_init.sh @@ -24,7 +24,7 @@ function migrate_database { 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 +if [[ "$VNFM_DB" == "" ]]; then create_database migrate_database fi -- cgit 1.2.3-korg