From fa41187f9ba013c9ad952c57c5e52f0404701d9e Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 17 Oct 2019 17:58:10 -0600 Subject: [PATCH] logic error in DH exist check --- ab-nginx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ab-nginx.sh b/ab-nginx.sh index 5e896d5..a71f45f 100755 --- a/ab-nginx.sh +++ b/ab-nginx.sh @@ -87,7 +87,7 @@ if [ "$TLS13_ONLY" = FALSE ]; then if [ -z "$DH" ]; then printf "${err}\nA DHparam file must be specified when using TLS 1.2. Exiting.${norm}\n" exit 5 - elif [ -f "$DH" ]; then + elif [ ! -f "$DH" ]; then printf "${err}\nCannot find specified DHparam file. Exiting.${norm}\n" exit 5 fi