Skip to content

Commit

Permalink
Closes-Bug: #1524478, Server-manager UI ports are moving to http_port…
Browse files Browse the repository at this point in the history
…:9080 and https_port:9143 for both SM/SMLite

Change-Id: I6b154f1e82e09e5d5c0850e9dae827eef59deb82
  • Loading branch information
miriyalar committed Feb 23, 2016
1 parent 3c0e12e commit bf12900
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sm_provision.sh
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bf12900

Please sign in to comment.