mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-15 12:52:13 +08:00
Merge pull request #6697 from sergiustheblack/fix/strongswan
Some checks failed
DNS / CheckToken (push) Has been cancelled
Build DockerHub / CheckToken (push) Has been cancelled
Shellcheck / ShellCheck (push) Has been cancelled
Shellcheck / shfmt (push) Has been cancelled
DNS / Fail (push) Has been cancelled
DNS / Docker (push) Has been cancelled
DNS / MacOS (push) Has been cancelled
DNS / Windows (push) Has been cancelled
DNS / FreeBSD (push) Has been cancelled
DNS / OpenBSD (push) Has been cancelled
DNS / NetBSD (push) Has been cancelled
DNS / DragonFlyBSD (push) Has been cancelled
DNS / Solaris (push) Has been cancelled
DNS / Omnios (push) Has been cancelled
Build DockerHub / build (push) Has been cancelled
Some checks failed
DNS / CheckToken (push) Has been cancelled
Build DockerHub / CheckToken (push) Has been cancelled
Shellcheck / ShellCheck (push) Has been cancelled
Shellcheck / shfmt (push) Has been cancelled
DNS / Fail (push) Has been cancelled
DNS / Docker (push) Has been cancelled
DNS / MacOS (push) Has been cancelled
DNS / Windows (push) Has been cancelled
DNS / FreeBSD (push) Has been cancelled
DNS / OpenBSD (push) Has been cancelled
DNS / NetBSD (push) Has been cancelled
DNS / DragonFlyBSD (push) Has been cancelled
DNS / Solaris (push) Has been cancelled
DNS / Omnios (push) Has been cancelled
Build DockerHub / build (push) Has been cancelled
Fix strongswan deploy hook
This commit is contained in:
@@ -33,7 +33,7 @@ strongswan_deploy() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_info _confdir "${_confdir}"
|
_info _confdir "${_confdir}"
|
||||||
__deploy_cert "$@" "stroke" "${_confdir}"
|
__deploy_cert "stroke" "${_confdir}" "$@"
|
||||||
${_ipsec} reload
|
${_ipsec} reload
|
||||||
fi
|
fi
|
||||||
# For modern vici mode
|
# For modern vici mode
|
||||||
@@ -50,7 +50,7 @@ strongswan_deploy() {
|
|||||||
_err "no swanctl config dir is found"
|
_err "no swanctl config dir is found"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
__deploy_cert "$@" "vici" "${_confdir}"
|
__deploy_cert "vici" "${_confdir}" "$@"
|
||||||
${_swanctl} --load-creds
|
${_swanctl} --load-creds
|
||||||
fi
|
fi
|
||||||
if [ -z "${_swanctl}" ] && [ -z "${_ipsec}" ]; then
|
if [ -z "${_swanctl}" ] && [ -z "${_ipsec}" ]; then
|
||||||
@@ -63,13 +63,13 @@ strongswan_deploy() {
|
|||||||
#################### Private functions below ##################################
|
#################### Private functions below ##################################
|
||||||
|
|
||||||
__deploy_cert() {
|
__deploy_cert() {
|
||||||
_cdomain="${1}"
|
_swan_mode="${1}"
|
||||||
_ckey="${2}"
|
_confdir="${2}"
|
||||||
_ccert="${3}"
|
_cdomain="${3}"
|
||||||
_cca="${4}"
|
_ckey="${4}"
|
||||||
_cfullchain="${5}"
|
_ccert="${5}"
|
||||||
_swan_mode="${6}"
|
_cca="${6}"
|
||||||
_confdir="${7}"
|
_cfullchain="${7}"
|
||||||
_debug _cdomain "${_cdomain}"
|
_debug _cdomain "${_cdomain}"
|
||||||
_debug _ckey "${_ckey}"
|
_debug _ckey "${_ckey}"
|
||||||
_debug _ccert "${_ccert}"
|
_debug _ccert "${_ccert}"
|
||||||
|
|||||||
Reference in New Issue
Block a user