From: Lukas Schauer Date: Mon, 10 Jul 2017 22:47:37 +0000 (+0200) Subject: export altnames so it can be used in hook scripts (fixes #360) X-Git-Tag: v0.5.0~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=367ef574f154ad60acfeaa0101917f6da898cb24;p=thirdparty%2Fdehydrated.git export altnames so it can be used in hook scripts (fixes #360) --- diff --git a/dehydrated b/dehydrated index 84adfe3..73fdb49 100755 --- a/dehydrated +++ b/dehydrated @@ -513,6 +513,7 @@ sign_csr() { if [ -z "${altnames}" ]; then altnames="$( extract_altnames "${csr}" )" fi + export altnames if [[ -z "${CA_NEW_AUTHZ}" ]] || [[ -z "${CA_NEW_CERT}" ]]; then _exiterr "Certificate authority doesn't allow certificate signing" @@ -715,6 +716,8 @@ sign_domain() { altnames="${*}" timestamp="$(date +%s)" + export altnames + echo " + Signing domains..." if [[ -z "${CA_NEW_AUTHZ}" ]] || [[ -z "${CA_NEW_CERT}" ]]; then _exiterr "Certificate authority doesn't allow certificate signing"