From 67d0421e1258b74dfe5ded490f8b114ff0ddf06c Mon Sep 17 00:00:00 2001 From: andrewheberle Date: Fri, 7 Jun 2019 17:23:58 +0800 Subject: [PATCH] Don't read DOMAIN_CONF or save HTTPS_INSECURE --- deploy/sophosxg.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/deploy/sophosxg.sh b/deploy/sophosxg.sh index 3a13daea..bae9b786 100644 --- a/deploy/sophosxg.sh +++ b/deploy/sophosxg.sh @@ -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"