From de5ce23b4e6c88f9e838ee5421db3e6dbb6f5e7e Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 17 Oct 2019 17:57:03 -0600 Subject: [PATCH] read params file early for cert existance checks --- ab-nginx.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ab-nginx.sh b/ab-nginx.sh index 4ec7080..5e896d5 100755 --- a/ab-nginx.sh +++ b/ab-nginx.sh @@ -63,6 +63,9 @@ if [ ! -f "./ab-nginx.params" ]; then exit 3 fi +# read .params file +. ./ab-nginx.params + # check for certs if using SSL if [ "$SSL_CERT" ]; then if [ ! -f "$SSL_CERT" ]; then @@ -121,9 +124,6 @@ while [ $# -gt 0 ]; do shift done -# read .params file -. ./ab-nginx.params - # run without TLS if [ -z "$SSL_CERT" ]; then