diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-03-26 10:27:58 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-03-26 10:28:08 +0800 |
commit | e7b11d87ae31049716475b54b8eb9a0aa92650a4 (patch) | |
tree | 9191aeb78024c11a18e57d46b73005cb1d89d9bc /lcm | |
parent | e1ce061efe39b054d0d7a1259d5d5f420900fdb7 (diff) |
update redis service nname
Change-Id: Idb026a32fd80c3ae62ddd5e4c85b0a65ea86bee6
Issue-ID: VFC-1316
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'lcm')
-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 |