summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlcm/docker/instance_init.sh2
1 files changed, 1 insertions, 1 deletions
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