Improvement: inifilename not depend on domain var

Make letsencrypt loading inifiles detected in loop instead of
constructing possibly wrong path with domain var
This commit is contained in:
2017-02-10 23:44:18 +01:00
parent 31d1958079
commit adbed8b212
+1 -1
View File
@@ -53,7 +53,7 @@ for inifile in "${LECONFIGDIR}"/cli-*.ini; do
if [ $? != 0 ]; then if [ $? != 0 ]; then
# run let's encrypt # run let's encrypt
letsencrypt certonly -c "${LECONFIGDIR}/cli-${domain}.ini" letsencrypt certonly -c "${inifile}"
# import certificate # import certificate
uberspace-add-certificate -k "${LECONFIGDIR}/live/${domain}/privkey.pem" -c "${LECONFIGDIR}/live/${domain}/cert.pem" uberspace-add-certificate -k "${LECONFIGDIR}/live/${domain}/privkey.pem" -c "${LECONFIGDIR}/live/${domain}/cert.pem"
fi fi