fix missing quotes
This commit is contained in:
parent
e0232004f0
commit
f08ffd2fa9
@ -28,12 +28,12 @@ unset vmount
|
|||||||
### functions
|
### functions
|
||||||
|
|
||||||
checkExist () {
|
checkExist () {
|
||||||
if [ "$1" = "file" ]; then
|
if [ "$1" = 'file' ]; then
|
||||||
if [ ! -f "$2" ]; then
|
if [ ! -f "$2" ]; then
|
||||||
printf "${err}\nCannot find file: '$2'. Exiting.\n${norm}"
|
printf "${err}\nCannot find file: '$2'. Exiting.\n${norm}"
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
elif [ "$1" = "dir" ]; then
|
elif [ "$1" = 'dir' ]; then
|
||||||
if [ ! -d "$2" ]; then
|
if [ ! -d "$2" ]; then
|
||||||
printf "${err}\nCannot find directory: '$2'. Exiting.\n${norm}"
|
printf "${err}\nCannot find directory: '$2'. Exiting.\n${norm}"
|
||||||
exit 3
|
exit 3
|
||||||
@ -96,7 +96,7 @@ checkExist 'file' "$SSL_KEY"
|
|||||||
checkExist 'file' "$SSL_CHAIN"
|
checkExist 'file' "$SSL_CHAIN"
|
||||||
|
|
||||||
# check for DHparam if using TLS1.2
|
# check for DHparam if using TLS1.2
|
||||||
if [ "$TLS13_ONLY" = FALSE ]; then
|
if [ "$TLS13_ONLY" = 'FALSE' ]; then
|
||||||
if [ -z "$DH" ]; then
|
if [ -z "$DH" ]; then
|
||||||
printf "${err}\nA DHparam file must be specified when using TLS 1.2. Exiting.${norm}\n"
|
printf "${err}\nA DHparam file must be specified when using TLS 1.2. Exiting.${norm}\n"
|
||||||
exit 5
|
exit 5
|
||||||
|
Loading…
Reference in New Issue
Block a user