diff options
-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 |