mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-17 23:03:47 +01:00
Only check existing certs when necessary
This commit is contained in:
committed by
Lukas Schauer
parent
199cd59774
commit
095165ee96
@@ -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/ $//')"
|
||||
|
||||
Reference in New Issue
Block a user