mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 05:42:43 +00:00
Don't read DOMAIN_CONF or save HTTPS_INSECURE
This commit is contained in:
parent
1d344f78fb
commit
67d0421e12
@ -29,7 +29,6 @@ sophosxg_do_req() {
|
||||
_do_req_certfile="certificate.p12"
|
||||
|
||||
# dont verify certs if config set
|
||||
_do_req_old_HTTPS_INSECURE="${HTTPS_INSECURE}"
|
||||
if [ "${Le_Deploy_sophosxg_https_insecure}" = "1" ]; then
|
||||
HTTPS_INSECURE="1"
|
||||
fi
|
||||
@ -60,13 +59,6 @@ sophosxg_do_req() {
|
||||
|
||||
# do POST
|
||||
_post "${_do_req_post}" "https://${_do_req_host}/webconsole/APIController?" "" "POST" "multipart/form-data; boundary=${_do_req_boundary}"
|
||||
ret=$?
|
||||
|
||||
# reset HTTP_INSECURE
|
||||
HTTPS_INSECURE="${_do_req_old_HTTPS_INSECURE}"
|
||||
|
||||
# return result of POST
|
||||
return $ret
|
||||
}
|
||||
|
||||
#domain keyfile certfile cafile fullchain
|
||||
@ -82,11 +74,6 @@ sophosxg_deploy() {
|
||||
DEFAULT_SOPHOSXG_NAME="$_cdomain"
|
||||
DEFAULT_SOPHOSXG_HTTPS_INSECURE="1"
|
||||
|
||||
if [ -f "$DOMAIN_CONF" ]; then
|
||||
# shellcheck disable=SC1090
|
||||
. "$DOMAIN_CONF"
|
||||
fi
|
||||
|
||||
_debug _cdomain "$_cdomain"
|
||||
_debug _ckey "$_ckey"
|
||||
_debug _ccert "$_ccert"
|
||||
|
Loading…
x
Reference in New Issue
Block a user