_inithttp
- if [ "$_ACME_CURL" ]; then
+ if [ "$_ACME_CURL" ] && [ "${ACME_USE_WGET:-0}" = "0" ]; then
_CURL="$_ACME_CURL"
if [ "$HTTPS_INSECURE" ]; then
_CURL="$_CURL --insecure "
_inithttp
- if [ "$_ACME_CURL" ]; then
+ if [ "$_ACME_CURL" ] && [ "${ACME_USE_WGET:-0}" = "0" ]; then
_CURL="$_ACME_CURL"
if [ "$HTTPS_INSECURE" ]; then
_CURL="$_CURL --insecure "
--listen-v4 Force standalone/tls server to listen at ipv4.
--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.
"
}
_saveaccountconf "AUTO_UPGRADE" "$AUTO_UPGRADE"
fi
+ if [ "$_use_wget" ]; then
+ _saveaccountconf "ACME_USE_WGET" "$_use_wget"
+ elif [ "$ACME_USE_WGET" ]; then
+ _saveaccountconf "ACME_USE_WGET" "$ACME_USE_WGET"
+ fi
+
}
_process() {
_listen_v6=""
_openssl_bin=""
_syslog=""
+ _use_wget=""
while [ ${#} -gt 0 ]; do
case "${1}" in
ACME_OPENSSL_BIN="$_openssl_bin"
shift
;;
+ --use-wget)
+ _use_wget="1"
+ ACME_USE_WGET="1"
+ ;;
*)
_err "Unknown parameter : $1"
return 1