aboutsummaryrefslogtreecommitdiffstats
path: root/900.lfacme.sh.in
blob: f1fae33e92d0df130219ec0cae77d0b8347a7244 (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:__PREFIX__/bin:__PREFIX__/sbin
export PATH

# Exit if lfacme isn't installed but the periodic script was left over
# for some reason.
if ! [ -x __BINDIR__/lfacme-renew ]; then
	exit 0
fi

case "$daily_lfacme_enable" in
[Yy][Ee][Ss])
	printf 'Renewing ACME certificates with lfacme:\n'

	__BINDIR__/lfacme-renew
	;;

*)
	;;
esac