Skip to content

Commit

Permalink
Merge "Closes-Bug: #1524478, Server-manager UI ports are moving to ht…
Browse files Browse the repository at this point in the history
…tp_port:9080 and https_port:9143 for both SM/SMLite" into R3.0
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 26, 2016
2 parents 4dc4f9c + bf12900 commit a2b6679
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sm_provision.sh
Original file line number Diff line number Diff line change
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 a2b6679

Please sign in to comment.