ansible-roles/evoacme/files/evoacme.cron
Jérémy Lecour 8f88a48e15 evoacme cron task : improve readability
* use long form options
* break line before pipe
2018-01-03 10:12:14 +01:00

16 lines
392 B
Bash
Executable file

#!/bin/sh
#
# Run evoacme script on every configured cert
#
# Author: Victor Laborie <vlaborie@evolix.fr>
# Licence: AGPLv3
#
[ -f /etc/default/evoacme ] && . /etc/default/evoacme
CRT_DIR="${CRT_DIR:-'/etc/letsencrypt'}"
export QUIET=1
find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" ! -path "*hooks" -printf "%f\n" \
| xargs --max-args=1 --no-run-if-empty evoacme