diff options
author | 2020-06-22 11:14:17 +0800 | |
---|---|---|
committer | 2020-06-23 00:17:37 +0000 | |
commit | 25a5b7ae680a120672faae4c2a1381b9e89f2a14 (patch) | |
tree | a58a16ed666e4d3e27a84b1b9df5ef72974ffe25 /docker | |
parent | 1f9fde9ca711a6ce22bb4424b8f2667a553a4aa0 (diff) |
upgrade code to add HTTP/HTTPS protocol registration switch to MSB
Change-Id: I6867304ec4f934a5dee274811000f1e4be365f73
Issue-ID: MODELING-372
Signed-off-by: dengyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/instance_config.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/instance_config.sh b/docker/instance_config.sh index e312cf3..7fcaa7a 100755 --- a/docker/instance_config.sh +++ b/docker/instance_config.sh @@ -21,6 +21,11 @@ if [ $SERVICE_IP ]; then sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" modeling/etsicatalog/catalog/pub/config/config.py fi + +if [ $SSL_ENABLED ]; then + sed -i "s|SSL_ENABLED.*|SSL_ENABLED = '$SSL_ENABLED'|" modeling/etsicatalog/catalog/pub/config/config.py +fi + MYSQL_IP=`echo $MYSQL_ADDR | cut -d: -f 1` MYSQL_PORT=`echo $MYSQL_ADDR | cut -d: -f 2` echo "MYSQL_ADDR=$MYSQL_ADDR" |