Fix db info in docker build scripts 53/11553/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Mon, 11 Sep 2017 05:55:02 +0000 (13:55 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Mon, 11 Sep 2017 05:55:02 +0000 (13:55 +0800)
Change-Id: I8972581ca1a3b6557a7924323cdf8e7a925a978c
Issue-ID: VFC-324
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
res/docker/instance_config.sh
res/res/pub/config/config.py

index e98175e..0d12bf8 100755 (executable)
@@ -21,9 +21,9 @@ if [ $REDIS_HOST ]; then
     sed -i "s|REDIS_HOST.*|REDIS_HOST = '$REDIS_HOST'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
 fi
 
-sed -i "s|DB_NAME.*|DB_NAME = 'vfcvnfres'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
-sed -i "s|DB_USER.*|DB_USER = 'vfcvnfres'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
-sed -i "s|DB_PASSWD.*|DB_PASSWD = 'vfcvnfres'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
+sed -i "s|DB_NAME.*|DB_NAME = 'gvnfm'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
+sed -i "s|DB_USER.*|DB_USER = 'gvnfm'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
+sed -i "s|DB_PASSWD.*|DB_PASSWD = 'gvnfm'|" vfc/gvnfm/vnfres/res/res/pub/config/config.py
 
 # Configure MYSQL
 if [ -z "$MYSQL_ADDR" ]; then
index d0ec0c2..86701be 100644 (file)
@@ -25,9 +25,9 @@ REDIS_PASSWD = ''
 # [mysql]
 DB_IP = "127.0.0.1"
 DB_PORT = 3306
-DB_NAME = "vfcvnfres"
-DB_USER = "vfcvnfres"
-DB_PASSWD = "vfcvnfres"
+DB_NAME = "gvnfm"
+DB_USER = "gvnfm"
+DB_PASSWD = "gvnfm"
 
 # [register]
 REG_TO_MSB_WHEN_START = True