aboutsummaryrefslogtreecommitdiffstats
path: root/docker/instance_config.sh
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-03-26 10:24:15 +0800
committerYan Yang <yangyanyj@chinamobile.com>2019-03-27 05:15:11 +0000
commit50baae0e33075cd8751c0a15afa9342beec9ac85 (patch)
tree4e4bb6752fc65e93d83fa1855c3f5e17ab9bcb29 /docker/instance_config.sh
parent4442a429e96e19ca9602bb58a49a0956384a7f34 (diff)
update redis service name
Change-Id: I4e6fcdb8fe0a61b4a6b30b42175427ec582b3d54 Issue-ID: VFC-1316 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker/instance_config.sh')
-rwxr-xr-xdocker/instance_config.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/instance_config.sh b/docker/instance_config.sh
index 13a0a2c7..1739be24 100755
--- a/docker/instance_config.sh
+++ b/docker/instance_config.sh
@@ -21,9 +21,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/nfvo/catalog/catalog/pub/config/config.py
sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" vfc/nfvo/catalog/catalog/pub/config/config.py
-sed -i "s|REDIS_HOST.*|REDIS_HOST = '$MYSQL_IP'|" vfc/nfvo/catalog/catalog/pub/config/config.py
+sed -i "s|REDIS_HOST.*|REDIS_HOST = '$REDIS_IP'|" vfc/nfvo/catalog/catalog/pub/config/config.py
+sed -i "s|REDIS_PORT.*|REDIS_PORT = '$REDIS_PORT'|" vfc/nfvo/catalog/catalog/pub/config/config.py
sed -i "s|DB_USER.*|DB_USER = '$MYSQL_USER'|" vfc/nfvo/catalog/catalog/pub/config/config.py
sed -i "s|DB_PASSWD.*|DB_PASSWD = '$MYSQL_ROOT_PASSWORD'|" vfc/nfvo/catalog/catalog/pub/config/config.py