move TLS var case-correction after reading params

This commit is contained in:
Asif Bacchus 2019-11-16 17:22:16 -07:00
parent 200bfd7ad6
commit d2ffebd925
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ checkExist 'file' './ab-nginx.params'
# read .params file
. ./ab-nginx.params
# fix case of TLS13_ONLY var
if [ "$TLS13_ONLY" ]; then
TLS13_ONLY=$( echo "$TLS13_ONLY" | tr "[:lower:]" "[:upper:]" )
fi
# check for certs if using SSL
checkExist 'file' "$SSL_CERT"
checkExist 'file' "$SSL_KEY"