summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-03 10:13:09 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-03 10:13:09 +0800
commit7bda307b801ca52bfd6693b4115530647b5c58b0 (patch)
tree59f520bb77b0cfd1b9f303f556c2878cab8e8a4b
parentd832753cefc69cb5813316c789319b1aaff2aba8 (diff)
Fix docker init file
Change-Id: I851b8197247b812b5de5875aaafa5bb4ec4167cb Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-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