Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
neilpang authored and jim-p committed Apr 2, 2018
1 parent b889266 commit 5d98208
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,14 @@ _STATELESS_WIKI="https://github.com/Neilpang/acme.sh/wiki/Stateless-Mode"

_DNS_ALIAS_WIKI="https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode"

_DNS_MANUAL_WIKI="https://github.com/Neilpang/acme.sh/wiki/dns-manual-mode"

_DNS_MANUAL_ERR="The dns manual mode can not renew automatically, you must issue it again manually. You'd better use the other modes instead."

_DNS_MANUAL_WARN="It seems that you are using dns manual mode. please take care: $_DNS_MANUAL_ERR"

_DNS_MANUAL_ERROR="It seems that you are using dns manual mode. Read this link first: $_DNS_MANUAL_WIKI"

__INTERACTIVE=""
if [ -t 1 ]; then
__INTERACTIVE="1"
Expand Down Expand Up @@ -3517,6 +3521,11 @@ issue() {
mkdir -p "$DOMAIN_PATH"
fi

if _hasfield "$_web_roots" "$W_DNS" && [ -z "$FORCE_DNS_MANUAL" ]; then
_err "$_DNS_MANUAL_ERROR"
return 1
fi

_debug "Using ACME_DIRECTORY: $ACME_DIRECTORY"

_initAPI
Expand Down Expand Up @@ -5568,6 +5577,7 @@ Parameters:
--listen-v6 Force standalone/tls server to listen at ipv6.
--openssl-bin Specifies a custom openssl bin location.
--use-wget Force to use wget, if you have both curl and wget installed.
--yes-I-know-dns-manual-mode-enough-go-ahead-please Force to use dns manual mode: $_DNS_MANUAL_WIKI
"
}

Expand Down Expand Up @@ -6056,6 +6066,9 @@ _process() {
shift
fi
;;
--yes-I-know-dns-manual-mode-enough-go-ahead-please)
export FORCE_DNS_MANUAL=1
;;
--log | --logfile)
_log="1"
_logfile="$2"
Expand Down

0 comments on commit 5d98208

Please sign in to comment.