ansible-roles/evoacme/files/certbot.cron

15 lines
372 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
[ -z "${CRT_DIR}" ] && CRT_DIR='/etc/letsencrypt'
2017-08-25 14:32:58 +02:00
find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" -exec basename {} \; | while read vhost; do
2017-09-21 00:39:06 +02:00
evoacme "$vhost"
done