From bf129002a67b27d8f42e63377a5e410f05f34932 Mon Sep 17 00:00:00 2001 From: Prasad Miriyala Date: Tue, 23 Feb 2016 15:45:57 -0800 Subject: [PATCH] Closes-Bug: #1524478, Server-manager UI ports are moving to http_port:9080 and https_port:9143 for both SM/SMLite Change-Id: I6b154f1e82e09e5d5c0850e9dae827eef59deb82 --- src/sm_provision.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sm_provision.sh b/src/sm_provision.sh index dcfae5aa..15dc1f63 100755 --- a/src/sm_provision.sh +++ b/src/sm_provision.sh @@ -34,7 +34,7 @@ LOCAL_REPO_DIR=/opt/contrail/contrail_local_repo CLUSTER_ID="cluster_auto_$RANDOM" NO_SM_MON="" NO_SM_WEBUI="" -SM_WEBUI_PORT=9003 +SM_WEBUI_PORT="" function usage() { @@ -245,7 +245,8 @@ if [ "$INSTALL_SM_LITE" != "" ]; then popd >> $log_file 2>&1 fi -if [ -f /etc/contrail/config.global.sm.js ]; then +if [ -f /etc/contrail/config.global.sm.js ] && [ "$SM_WEBUI_PORT" != "" ] +then echo "$space$arrow Changing SM Webui Port to $SM_WEBUI_PORT" sed -i "s|config.https_port =.*|config.https_port = '${SM_WEBUI_PORT}';|g" /etc/contrail/config.global.sm.js service supervisor-webui-sm restart >> $log_file 2>&1