Don't add cert if letsencrypt complains

It makes no sense to call uberspace-add-certificate if letsencrypt
fails
This commit is contained in:
2017-05-26 18:37:21 +02:00
parent 8b615e7e35
commit 821532cd06
+1 -1
View File
@@ -52,7 +52,7 @@ for inifile in "${LECONFIGDIR}"/cli-*.ini; do
openssl x509 -checkend $(( 21 * 86400 )) -in "${LECONFIGDIR}/live/${domain}/cert.pem" > /dev/null && continue openssl x509 -checkend $(( 21 * 86400 )) -in "${LECONFIGDIR}/live/${domain}/cert.pem" > /dev/null && continue
# run let's encrypt # run let's encrypt
letsencrypt certonly -c "${inifile}" letsencrypt certonly -c "${inifile}" || continue
# 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"