mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-07 05:25:14 +02:00
Only check existing certs when necessary
This commit is contained in:
committed by
Lukas Schauer
parent
199cd59774
commit
095165ee96
+1
-1
@@ -1662,7 +1662,7 @@ command_sign_domains() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check domain names of existing certificate
|
# 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..."
|
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/ $//')"
|
certnames="$("${OPENSSL}" x509 -in "${cert}" -text -noout | grep DNS: | _sed 's/DNS://g' | tr -d ' ' | tr ',' '\n' | sort -u | tr '\n' ' ' | _sed 's/ $//')"
|
||||||
|
|||||||
Reference in New Issue
Block a user