|
@@ -124,23 +124,19 @@ if [ -t 1 ]; then
|
|
|
fi
|
|
|
|
|
|
__green() {
|
|
|
- if [ "$__INTERACTIVE${ACME_NO_COLOR}" = "1" -o "${ACME_FORCE_COLOR}" = "1" ]; then
|
|
|
- printf '\033[1;31;32m'
|
|
|
+ if [ "${__INTERACTIVE}${ACME_NO_COLOR:-0}" = "10" -o "${ACME_FORCE_COLOR}" = "1" ]; then
|
|
|
+ printf '\033[1;31;32m%b\033[0m' "$1"
|
|
|
+ return
|
|
|
fi
|
|
|
printf -- "%b" "$1"
|
|
|
- if [ "$__INTERACTIVE${ACME_NO_COLOR}" = "1" -o "${ACME_FORCE_COLOR}" = "1" ]; then
|
|
|
- printf '\033[0m'
|
|
|
- fi
|
|
|
}
|
|
|
|
|
|
__red() {
|
|
|
- if [ "$__INTERACTIVE${ACME_NO_COLOR}" = "1" -o "${ACME_FORCE_COLOR}" = "1" ]; then
|
|
|
- printf '\033[1;31;40m'
|
|
|
+ if [ "${__INTERACTIVE}${ACME_NO_COLOR:-0}" = "10" -o "${ACME_FORCE_COLOR}" = "1" ]; then
|
|
|
+ printf '\033[1;31;40m%b\033[0m' "$1"
|
|
|
+ return
|
|
|
fi
|
|
|
printf -- "%b" "$1"
|
|
|
- if [ "$__INTERACTIVE${ACME_NO_COLOR}" = "1" -o "${ACME_FORCE_COLOR}" = "1" ]; then
|
|
|
- printf '\033[0m'
|
|
|
- fi
|
|
|
}
|
|
|
|
|
|
_printargs() {
|
|
@@ -2925,6 +2921,7 @@ _clearupdns() {
|
|
|
_debug txt "$txt"
|
|
|
if [ "$keyauthorization" = "$STATE_VERIFIED" ]; then
|
|
|
_debug "$d is already verified, skip $vtype."
|
|
|
+ _alias_index="$(_math "$_alias_index" + 1)"
|
|
|
continue
|
|
|
fi
|
|
|
|
|
@@ -3775,6 +3772,7 @@ $_authorizations_map"
|
|
|
_debug d "$d"
|
|
|
if [ "$keyauthorization" = "$STATE_VERIFIED" ]; then
|
|
|
_debug "$d is already verified, skip $vtype."
|
|
|
+ _alias_index="$(_math "$_alias_index" + 1)"
|
|
|
continue
|
|
|
fi
|
|
|
|
|
@@ -4602,7 +4600,8 @@ deploy() {
|
|
|
|
|
|
_initpath "$_d" "$_isEcc"
|
|
|
if [ ! -d "$DOMAIN_PATH" ]; then
|
|
|
- _err "Domain is not valid:'$_d'"
|
|
|
+ _err "The domain '$_d' is not a cert name. You must use the cert name to specify the cert to install."
|
|
|
+ _err "Can not find path:'$DOMAIN_PATH'"
|
|
|
return 1
|
|
|
fi
|
|
|
|
|
@@ -4629,7 +4628,8 @@ installcert() {
|
|
|
|
|
|
_initpath "$_main_domain" "$_isEcc"
|
|
|
if [ ! -d "$DOMAIN_PATH" ]; then
|
|
|
- _err "Domain is not valid:'$_main_domain'"
|
|
|
+ _err "The domain '$_main_domain' is not a cert name. You must use the cert name to specify the cert to install."
|
|
|
+ _err "Can not find path:'$DOMAIN_PATH'"
|
|
|
return 1
|
|
|
fi
|
|
|
|
|
@@ -5474,7 +5474,7 @@ Parameters:
|
|
|
--log-level 1|2 Specifies the log level, default is 1.
|
|
|
--syslog [0|3|6|7] Syslog level, 0: disable syslog, 3: error, 6: info, 7: debug.
|
|
|
|
|
|
- These parameters are to install the cert to nginx/apache or anyother server after issue/renew a cert:
|
|
|
+ These parameters are to install the cert to nginx/apache or any other server after issue/renew a cert:
|
|
|
|
|
|
--cert-file After issue/renew, the cert will be copied to this path.
|
|
|
--key-file After issue/renew, the key will be copied to this path.
|