From adbed8b21236bea9df7eeadce79cf668f8a8bc09 Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Fri, 10 Feb 2017 23:44:18 +0100 Subject: [PATCH] Improvement: inifilename not depend on domain var Make letsencrypt loading inifiles detected in loop instead of constructing possibly wrong path with domain var --- letsencrypt-renew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt-renew.sh b/letsencrypt-renew.sh index dba75c0..fc385ee 100755 --- a/letsencrypt-renew.sh +++ b/letsencrypt-renew.sh @@ -53,7 +53,7 @@ for inifile in "${LECONFIGDIR}"/cli-*.ini; do if [ $? != 0 ]; then # run let's encrypt - letsencrypt certonly -c "${LECONFIGDIR}/cli-${domain}.ini" + letsencrypt certonly -c "${inifile}" # import certificate uberspace-add-certificate -k "${LECONFIGDIR}/live/${domain}/privkey.pem" -c "${LECONFIGDIR}/live/${domain}/cert.pem" fi