read params file early for cert existance checks

This commit is contained in:
Asif Bacchus 2019-10-17 17:57:03 -06:00
parent 78a3efd5ca
commit de5ce23b4e
1 changed files with 3 additions and 3 deletions

View File

@ -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