blob: dabb89058345a85bbc7d2796be2fe3b8328abff7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#! /bin/sh
# This source code is released into the public domain.
#
# Run lfacme-renew to renew ACME certificates.
if [ -r /etc/defaults/periodic.conf ]; then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
PATH=$PATH:/usr/local/bin:/usr/local/sbin
export PATH
# Exit if lfacme isn't installed but the periodic script was left over
# for some reason.
if ! [ -x /usr/local/sbin/lfacme-renew ]; then
exit 0
fi
case "$daily_lfacme_enable" in
[Yy][Ee][Ss])
printf 'Renewing ACME certificates with lfacme:\n'
/usr/local/sbin/lfacme-renew
;;
*)
;;
esac
|