ansible-roles/evoacme/files/evoacme.cron
Alexis Ben Miloud--Josselin e9a43ea1db
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |3132|0|3132|0|:zzz:
gitea/ansible-roles/pipeline/head This commit looks good
evoacme: Certificates directory path
The variable CRT_DIR is already well set in /etc/default/evoacme,
so this bug might have caused trouble yet.
2024-08-16 11:48:40 +02:00

27 lines
658 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 "${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