ansible-roles/evoacme/files/evoacme.cron

28 lines
660 B
Plaintext
Raw Normal View History

2017-06-12 11:58:11 +02:00
#!/bin/sh
2017-08-25 14:32:58 +02:00
#
# Run evoacme script on every configured cert
#
# Author: Victor Laborie <vlaborie@evolix.fr>
# Licence: AGPLv3
#
2017-06-12 11:58:11 +02:00
[ -f /etc/default/evoacme ] && . /etc/default/evoacme
2017-10-13 12:09:12 +02:00
CRT_DIR="${CRT_DIR:-'/etc/letsencrypt'}"
2017-11-14 17:19:15 +01:00
export QUIET=1
find "${CRT_DIR}" \
-maxdepth 1 \
-mindepth 1 \
-type d \
2021-08-20 11:32:16 +02:00
! -path "${CRT_DIR}/accounts" \
! -path "${CRT_DIR}/archive" \
! -path "${CRT_DIR}/csr" \
! -path "${CRT_DIR}/hooks" \
! -path "${CRT_DIR}/keys" \
! -path "${CRT_DIR}/live" \
! -path "${CRT_DIR}/renewal" \
! -path "${CRT_DIR}/renewal-hooks" \
-printf "%f\n" \
| xargs --max-args=1 --no-run-if-empty evoacme