mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-13 18:39:48 +02:00
new hook: sync_cert (closes #609)
This commit is contained in:
@@ -1054,6 +1054,9 @@ sign_domain() {
|
||||
rm "${tmpcert}" "${tmpchain}"
|
||||
fi
|
||||
|
||||
# Wait for hook script to sync the files before creating the symlinks
|
||||
[[ -n "${HOOK}" ]] && "${HOOK}" "sync_cert" "${certdir}/privkey-${timestamp}.pem" "${certdir}/cert-${timestamp}.pem" "${certdir}/fullchain-${timestamp}.pem" "${certdir}/chain-${timestamp}.pem" "${certdir}/cert-${timestamp}.csr"
|
||||
|
||||
# Update symlinks
|
||||
[[ "${privkey}" = "privkey.pem" ]] || ln -sf "privkey-${timestamp}.pem" "${certdir}/privkey.pem"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user