Skip to content

Commit

Permalink
Fix Olympus config for SECURESSL=FALSE
Browse files Browse the repository at this point in the history
Fixes #2381
  • Loading branch information
ammendonca authored Jul 27, 2017
1 parent c0b2996 commit 0f47225
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ FILE=$BASEDIR/standalone/deployments/olympus.war/resources/xml/olympus.xml
local SIP_PORT_WS=$((SIP_PORT_WS + PORT_OFFSET))
local SIP_PORT_WSS=$((SIP_PORT_WSS + PORT_OFFSET))

if [ -n "$SECURESSL" ]; then
xmlstarlet ed -L -P -u "/olympus/server/@secure" -v "true" $FILE
else
if [ -z "$SECURESSL" ] || [ "$SECURESSL" == "false" ] || [ "$SECURESSL" == "FALSE" ]; then
xmlstarlet ed -L -P -u "/olympus/server/@secure" -v "false" $FILE
else
xmlstarlet ed -L -P -u "/olympus/server/@secure" -v "true" $FILE
fi

if [ "$ACTIVATE_LB" == "true" ] || [ "$ACTIVATE_LB" == "TRUE" ]; then
Expand All @@ -43,4 +43,4 @@ FILE=$BASEDIR/standalone/deployments/olympus.war/resources/xml/olympus.xml
# MAIN
echo 'Configuring Olympus...'
#Reload Variables
olympusPortConf
olympusPortConf

0 comments on commit 0f47225

Please sign in to comment.