Skip to content

Commit

Permalink
part 2 fix typo for SSL_PROTOCOL_MODERN='y' routine in 123.09beta01
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed May 10, 2020
1 parent d43c5d1 commit cf066ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion centmin.sh
Expand Up @@ -27,7 +27,7 @@ DT=$(date +"%d%m%y-%H%M%S")
branchname='123.09beta01'
SCRIPT_MAJORVER='1.2.3'
SCRIPT_MINORVER='09'
SCRIPT_INCREMENTVER='510'
SCRIPT_INCREMENTVER='511'
SCRIPT_VERSIONSHORT="${branchname}"
SCRIPT_VERSION="${SCRIPT_VERSIONSHORT}.b${SCRIPT_INCREMENTVER}"
SCRIPT_DATE='31/03/2020'
Expand Down
2 changes: 1 addition & 1 deletion inc/cpcheck.inc
Expand Up @@ -243,7 +243,7 @@ redetect_tlsonethree() {
if [[ "$OPENSSL_TLSONETHREE" = [yY] ]]; then
# Nginx supports TLS 1.3 ssl_protocols directive
if [[ "$SSL_PROTOCOL_MODERN" = [yY] ]]; then
sed -i "s|ssl_protocols .*|ssl_protocols TLSv1.2 TLSv1.3;|" /usr/local/nginx/conf/ssl-include.conf
sed -i "s|ssl_protocols .*|ssl_protocols TLSv1.2 TLSv1.3;|" /usr/local/nginx/conf/ssl_include.conf
elif [[ "$(grep -w "ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;" /usr/local/nginx/conf/ssl_include.conf)" ]]; then
sed -i "s|ssl_protocols .*|ssl_protocols ${TLSONEONEPROTOCOL_OPT}TLSv1.1 TLSv1.2 TLSv1.3;|" /usr/local/nginx/conf/ssl_include.conf
elif [[ "$(grep -w "ssl_protocols ${TLSONEONEPROTOCOL_OPT}TLSv1.1 TLSv1.2;" /usr/local/nginx/conf/ssl_include.conf)" ]]; then
Expand Down

0 comments on commit cf066ef

Please sign in to comment.