Skip to content

Commit 798c881

Browse files
committed
RESTCOMM-1327 #Fix for intermittence of parameter https.protocols from JAVA_OPTS when starting and stopping docker containers.
1 parent 120b97a commit 798c881

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d

restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,12 +637,12 @@ otherRestCommConf(){
637637
mv $FILE.bak $FILE
638638

639639
#Remove if is set in earlier run.
640-
grep -q 'allowLegacyHelloMessages' $RESTCOMM_BIN/standalone.conf && sed -i "s|-Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=.* ||" $RESTCOMM_BIN/standalone.conf
640+
grep -q 'allowLegacyHelloMessages' $RESTCOMM_BIN/standalone.conf && sed -i -E "s/(.*)( -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=)(true|false)(.*)/\1\4/" $RESTCOMM_BIN/standalone.conf
641641

642642
if [[ "$SSLSNI" == "false" || "$SSLSNI" == "FALSE" ]]; then
643-
sed -i "s|-Djava.awt.headless=true|& -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=false |" $RESTCOMM_BIN/standalone.conf
643+
sed -i "s|-Djava.awt.headless=true|& -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=false|" $RESTCOMM_BIN/standalone.conf
644644
else
645-
sed -i "s|-Djava.awt.headless=true|& -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=true |" $RESTCOMM_BIN/standalone.conf
645+
sed -i "s|-Djava.awt.headless=true|& -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=true|" $RESTCOMM_BIN/standalone.conf
646646
fi
647647

648648
if [ -n "$HSQL_DIR" ]; then

0 commit comments

Comments
 (0)