diff --git a/setup.sh b/setup.sh index 17fe527..31aa0b1 100644 --- a/setup.sh +++ b/setup.sh @@ -22,6 +22,7 @@ unset useCertbot unset CertbotDomain unset CertPath unset KeyPath +unset CAChain unset DHPath detectedIP=$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p') @@ -113,6 +114,13 @@ if [ "${useCertbot}" -eq 1 ]; then done fi +# Generate paths from CertbotDomain +if [ "${useCertbot}" -eq 1 ]; then + CertPath="/etc/letsencrypt/live/${CertbotDomain}/fullchain.pem" + KeyPath="/etc/letsencrypt/live/${CertbotDomain}/privkey.pem" + CAChain="/etc/letsencrypt/live/${CertbotDomain}/chain.pem" +fi + # only process manual certificate paths if NOT using Certbot if [ "${useCertbot}" -eq 0 ]; then # not using Certbot: get location of certificate