diff options
author | maopeng zhang <zhang.maopeng1@zte.com.cn> | 2019-03-26 07:36:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-26 07:36:46 +0000 |
commit | 181d8c6c2a88ca264ec9d7f5a341c73daaa59e5c (patch) | |
tree | 90945f48e711f36a52bd63d5fd180757334ae69e | |
parent | c2da75032a9972e0d31e4e06bd4d1cbb85d85bca (diff) | |
parent | e7b11d87ae31049716475b54b8eb9a0aa92650a4 (diff) |
Merge "update redis service nname"
-rwxr-xr-x | lcm/docker/instance_config.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lcm/docker/instance_config.sh b/lcm/docker/instance_config.sh index 93c6aa8b..359dc438 100755 --- a/lcm/docker/instance_config.sh +++ b/lcm/docker/instance_config.sh @@ -24,9 +24,13 @@ echo "MYSQL_ADDR=$MYSQL_ADDR" MYSQL_USER=`echo $MYSQL_AUTH | cut -d: -f 1` MYSQL_ROOT_PASSWORD=`echo $MYSQL_AUTH | cut -d: -f 2` +REDIS_IP=`echo $REDIS_ADDR | cut -d: -f 1` +REDIS_PORT=`echo $REDIS_ADDR | 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|REDIS_HOST.*|REDIS_HOST = '$REDIS_IP'|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py +sed -i "s|REDIS_HOST.*|REDIS_HOST = '$REDIS_PORT'|" 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 |