diff --git a/acme-cpanel.sh b/acme-cpanel.sh index e63f5ad..ece59ea 100755 --- a/acme-cpanel.sh +++ b/acme-cpanel.sh @@ -22,8 +22,6 @@ # NOTE: The webroot method does NOT support wildcard domains, Let's Encrypt requires wildcard domains to # use DNS challenges, which the CPANEL uapi does not support (use dns_cpaneldns plugin instead) -source functions.sh - unset SITES_DIR USEREMAIL DOMAIN_FILES DOMAIN_GROUPS DEPLOY_CMD_PREFIX ISSUE_CMD_PREFIX DEBUG GROUP DEBUG="true" # quote this line to stop DEBUG mode and issue certificates for real, or use --force in user options @@ -167,6 +165,7 @@ issue_and_deploy_certs() { echo "Running:" "${issue_cmd[@]}" if ! "${issue_cmd[@]}"; then echo "Failed to issue certificate" + fi # Deploy certificates one by one for domain in $domain_group; do deploy_cmd=("${DEPLOY_CMD_PREFIX[@]}" "-w" "$domain_root" "-d" "$domain")