From: Stefaan Ghysels Date: Mon, 26 Aug 2019 08:28:01 +0000 (+0200) Subject: Only check existing certs when necessary X-Git-Tag: v0.7.1~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=095165ee96f3d64b8e6756500921d92c3b86e110;p=thirdparty%2Fdehydrated.git Only check existing certs when necessary --- diff --git a/dehydrated b/dehydrated index d998901..8fe232b 100755 --- a/dehydrated +++ b/dehydrated @@ -1662,7 +1662,7 @@ command_sign_domains() { fi # Check domain names of existing certificate - if [[ -e "${cert}" ]]; then + if [[ -e "${cert}" && "${force_renew}" = "no" ]]; then printf " + Checking domain name(s) of existing cert..." certnames="$("${OPENSSL}" x509 -in "${cert}" -text -noout | grep DNS: | _sed 's/DNS://g' | tr -d ' ' | tr ',' '\n' | sort -u | tr '\n' ' ' | _sed 's/ $//')"