change CertbotDomain path generate to string test

This commit is contained in:
Asif Bacchus 2019-01-07 23:03:43 -07:00
parent 7c45a84d69
commit 7fdd38d3e4

View File

@ -289,7 +289,7 @@ if [ "${useCertbot}" -eq 1 ]; then
fi fi
# Generate paths from CertbotDomain # Generate paths from CertbotDomain
if [ "${CertbotDomain}" -eq 1 ]; then if [ -n "${CertbotDomain}" ]; then
CertPath="/etc/letsencrypt/live/${CertbotDomain}/fullchain.pem" CertPath="/etc/letsencrypt/live/${CertbotDomain}/fullchain.pem"
KeyPath="/etc/letsencrypt/live/${CertbotDomain}/privkey.pem" KeyPath="/etc/letsencrypt/live/${CertbotDomain}/privkey.pem"
CAChainPath="/etc/letsencrypt/live/${CertbotDomain}/chain.pem" CAChainPath="/etc/letsencrypt/live/${CertbotDomain}/chain.pem"