From 49fa74159bf0d4a2274ec96b1162bc7bcb9b2972 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 27 Jul 2021 14:41:32 -0600 Subject: [PATCH] refactor(helpers): remove dhparams check - container now auto-generates this file if needed --- helpers/ab-nginx.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/helpers/ab-nginx.sh b/helpers/ab-nginx.sh index b5f2ce2..7b4c253 100644 --- a/helpers/ab-nginx.sh +++ b/helpers/ab-nginx.sh @@ -4,6 +4,8 @@ # start ab-nginx container using params file variables # +# TODO: add stop & stop and remove commands + # text formatting presets if command -v tput >/dev/null; then cyan=$(tput bold)$(tput setaf 6) @@ -128,16 +130,6 @@ if [ "$SSL_CERT" ]; then checkExist 'file' "$SSL_CERT"; fi if [ "$SSL_KEY" ]; then checkExist 'file' "$SSL_KEY"; fi if [ "$SSL_CHAIN" ]; then checkExist 'file' "$SSL_CHAIN"; fi -# check for DHparam if using TLS1.2 -if [ "$SSL_CERT" ] && [ "$TLS13_ONLY" = 'FALSE' ]; then - if [ -z "$DH" ]; then - printf "%s\nA DHparam file must be specified when using TLS 1.2. Exiting.%s\n" "$err" "$norm" - exit 5 - else - checkExist 'file' "$DH" - fi -fi - # check if specified config directory exists if [ "$CONFIG_DIR" ]; then checkExist 'dir' "$CONFIG_DIR"