From: Lukas Schauer Date: Sun, 29 Jan 2017 15:03:59 +0000 (+0100) Subject: export some config variables for use within hook scripts X-Git-Tag: v0.4.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57197306d7d19d87b3b6b5deadd640d72cbe5f31;p=thirdparty%2Fdehydrated.git export some config variables for use within hook scripts --- diff --git a/dehydrated b/dehydrated index 9e8a98d..cb3bbc8 100755 --- a/dehydrated +++ b/dehydrated @@ -691,7 +691,6 @@ sign_domain() { ln -sf "cert-${timestamp}.pem" "${CERTDIR}/${domain}/cert.pem" # Wait for hook script to clean the challenge and to deploy cert if used - export KEY_ALGO [[ -n "${HOOK}" ]] && "${HOOK}" "deploy_cert" "${domain}" "${CERTDIR}/${domain}/privkey.pem" "${CERTDIR}/${domain}/cert.pem" "${CERTDIR}/${domain}/fullchain.pem" "${CERTDIR}/${domain}/chain.pem" "${timestamp}" unset challenge_token @@ -771,6 +770,7 @@ command_sign_domains() { IFS="${ORIGIFS}" fi verify_config + export WELLKNOWN CHALLENGETYPE KEY_ALGO PRIVATE_KEY_ROLLOVER if [[ -e "${cert}" ]]; then printf " + Checking domain name(s) of existing cert..."