diff options
author | LiZi <li.zi30@zte.com.cn> | 2018-04-16 04:05:48 -0400 |
---|---|---|
committer | LiZi <li.zi30@zte.com.cn> | 2018-04-16 04:06:03 -0400 |
commit | b6c7a698a58b1c64329377fd27f2a52a8f918e5e (patch) | |
tree | 1132b20a0e24b4fa7004a8ab317ec899e17f5b66 /docker/instance_config.sh | |
parent | 18f39804274b3ad1a3c6def3b106dc5636c45094 (diff) |
Add REG_TO_MSB as env param.
When deployed with OOM, should not register service to MSB by itself. So Add REG_TO_MSB as env param to control the function register to MSB when start. Default value is True.
Change-Id: I91c4eed048bfa819f701323015626ac54d3f35ec
Issue-ID: MSB-98
Signed-off-by: LiZi <li.zi30@zte.com.cn>
Diffstat (limited to 'docker/instance_config.sh')
-rwxr-xr-x | docker/instance_config.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/instance_config.sh b/docker/instance_config.sh index c76770e3..2e0dfd57 100755 --- a/docker/instance_config.sh +++ b/docker/instance_config.sh @@ -11,6 +11,10 @@ if [ $MSB_PORT ]; then sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/catalog/catalog/pub/config/config.py fi +if [ $REG_TO_MSB ]; then + sed -i "s|REG_TO_MSB_WHEN_START.*|REG_TO_MSB_WHEN_START = '$REG_TO_MSB'|" vfc/nfvo/catalog/catalog/pub/config/config.py +fi + if [ $SERVICE_IP ]; then sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/nfvo/catalog/catalog/pub/config/config.py fi |