evoacme: use Let's Encrypt deploy hooks by default

This commit is contained in:
Jérémy Lecour 2020-08-21 13:57:30 +02:00 committed by Jérémy Lecour
parent 81e7548c73
commit 9fe4dc24b9
2 changed files with 4 additions and 2 deletions

View file

@ -11,6 +11,8 @@ This project does not follow semantic versioning.
### Changed
* evoacme: use Let's Encrypt deploy hooks by default
### Deprecated
### Removed

View file

@ -285,7 +285,7 @@ main() {
export EVOACME_FULLCHAIN="${LIVE_FULLCHAIN}"
# search for files in hooks directory
for hook in $(find ${HOOKS_DIR} -type f); do
for hook in $(find ${HOOKS_DIR} -type f -executable | sort); do
# keep only executables files, not containing a "."
if [ -x "${hook}" ] && (basename "${hook}" | grep -vqF "."); then
debug "Executing ${hook}"
@ -314,7 +314,7 @@ readonly ACME_DIR=${ACME_DIR:-"/var/lib/letsencrypt"}
readonly CSR_DIR=${CSR_DIR:-"/etc/ssl/requests"}
readonly CRT_DIR=${CRT_DIR:-"/etc/letsencrypt"}
readonly LOG_DIR=${LOG_DIR:-"/var/log/evoacme"}
readonly HOOKS_DIR=${HOOKS_DIR:-"${CRT_DIR}/hooks"}
readonly HOOKS_DIR=${HOOKS_DIR:-"${CRT_DIR}/renewal-hooks/deploy"}
readonly SSL_MINDAY=${SSL_MINDAY:-"30"}
readonly SSL_EMAIL=${SSL_EMAIL:-""}