diff options
author | nachoparker <nacho@ownyourbits.com> | 2021-10-15 21:42:47 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2021-10-18 17:01:49 +0300 |
commit | 74ed53f2de92fcb87810732e8f96d8783ab59926 (patch) | |
tree | 9407ec2df0508ef11ce1b70cd7a30df462d66a0b | |
parent | 0a866caca4526983dc6f355f19e6434f76d674e3 (diff) |
letsencrypt: hardcode cert name to avoid -0001 pathsv1.41.5
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r-- | bin/ncp/NETWORKING/letsencrypt.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/ncp/NETWORKING/letsencrypt.sh b/bin/ncp/NETWORKING/letsencrypt.sh index 6f3bf5e3..2a13d45c 100644 --- a/bin/ncp/NETWORKING/letsencrypt.sh +++ b/bin/ncp/NETWORKING/letsencrypt.sh @@ -62,24 +62,21 @@ configure() exit 0 } local DOMAIN_LOWERCASE="${DOMAIN,,}" - local OTHER_DOMAINS_ARRAY [[ "$DOMAIN" == "" ]] && { echo "empty domain"; return 1; } local IFS_BK="$IFS" - IFS=",$IFS" OTHER_DOMAINS_ARRAY=(${OTHER_DOMAIN}) - IFS="$IFS_BK" # Do it local domain_string="" - for domain in $DOMAIN "${OTHER_DOMAINS_ARRAY[@]}"; do + for domain in "${DOMAIN}" "${OTHER_DOMAIN}"; do [[ "$domain" != "" ]] && { [[ $domain_string == "" ]] && \ domain_string+="${domain}" || \ domain_string+=",${domain}" } done - "${letsencrypt}" certonly -n --force-renew --no-self-upgrade --webroot -w "${ncdir}" \ + "${letsencrypt}" certonly -n --cert-name "${DOMAIN}" --force-renew --no-self-upgrade --webroot -w "${ncdir}" \ --hsts --agree-tos -m "${EMAIL}" -d "${domain_string}" && { # Set up auto-renewal |