Browse Source

Add ability to specify an alternative wget command

pull/6449/head
WHR 4 months ago
parent
commit
e73a41c07b
  1. 9
      acme.sh

9
acme.sh

@ -1909,7 +1909,7 @@ _inithttp() {
fi fi
if [ -z "$_ACME_WGET" ] && _exists "wget"; then if [ -z "$_ACME_WGET" ] && _exists "wget"; then
_ACME_WGET="wget -q"
_ACME_WGET="${ACME_CUSTOM_WGET:-wget} -q"
if [ "$ACME_HTTP_NO_REDIRECTS" ]; then if [ "$ACME_HTTP_NO_REDIRECTS" ]; then
_ACME_WGET="$_ACME_WGET --max-redirect 0 " _ACME_WGET="$_ACME_WGET --max-redirect 0 "
fi fi
@ -7067,7 +7067,7 @@ Parameters:
--listen-v4 Force standalone/tls server to listen at ipv4. --listen-v4 Force standalone/tls server to listen at ipv4.
--listen-v6 Force standalone/tls server to listen at ipv6. --listen-v6 Force standalone/tls server to listen at ipv6.
--openssl-bin <file> Specifies a custom openssl bin location. --openssl-bin <file> Specifies a custom openssl bin location.
--use-wget Force to use wget, if you have both curl and wget installed.
--use-wget[=<command>] Force to use wget, if you have both curl and wget installed.
--yes-I-know-dns-manual-mode-enough-go-ahead-please Force use of dns manual mode. --yes-I-know-dns-manual-mode-enough-go-ahead-please Force use of dns manual mode.
See: $_DNS_MANUAL_WIKI See: $_DNS_MANUAL_WIKI
@ -7823,6 +7823,11 @@ _process() {
_use_wget="1" _use_wget="1"
ACME_USE_WGET="1" ACME_USE_WGET="1"
;; ;;
--use-wget=*)
_use_wget="1"
ACME_USE_WGET="1"
ACME_CUSTOM_WGET="${1#--use-wget=}"
;;
--branch | -b) --branch | -b)
export BRANCH="$2" export BRANCH="$2"
shift shift

Loading…
Cancel
Save