summaryrefslogtreecommitdiffstats
path: root/lcm/docker/instance_config.sh
diff options
context:
space:
mode:
authormaopeng zhang <zhang.maopeng1@zte.com.cn>2019-03-25 07:55:25 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-25 07:55:25 +0000
commite1ce061efe39b054d0d7a1259d5d5f420900fdb7 (patch)
tree774cfc2668244d3bab6135783399c6f84538df89 /lcm/docker/instance_config.sh
parented97abfb0048fd07e01101c6c811b5395ae2b180 (diff)
parentfc22a341ea5db3b3a0bb3e152acbff7e20d3851b (diff)
Merge "change the way of create database"
Diffstat (limited to 'lcm/docker/instance_config.sh')
-rwxr-xr-xlcm/docker/instance_config.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lcm/docker/instance_config.sh b/lcm/docker/instance_config.sh
index 48a157c4..93c6aa8b 100755
--- a/lcm/docker/instance_config.sh
+++ b/lcm/docker/instance_config.sh
@@ -21,9 +21,13 @@ sed -i "s/127.0.0.1:80/$MSB_IP:$MSB_PORT/" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/c
MYSQL_IP=`echo $MYSQL_ADDR | cut -d: -f 1`
MYSQL_PORT=`echo $MYSQL_ADDR | cut -d: -f 2`
echo "MYSQL_ADDR=$MYSQL_ADDR"
+MYSQL_USER=`echo $MYSQL_AUTH | cut -d: -f 1`
+MYSQL_ROOT_PASSWORD=`echo $MYSQL_AUTH | cut -d: -f 2`
sed -i "s|DB_IP.*|DB_IP = '$MYSQL_IP'|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
sed -i "s|REDIS_HOST.*|REDIS_HOST = '$MYSQL_IP'|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
+sed -i "s|DB_USER.*|DB_USER = '$MYSQL_USER'|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
+sed -i "s|DB_PASSWD.*|DB_PASSWD = '$MYSQL_ROOT_PASSWORD'|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
cat vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py