summaryrefslogtreecommitdiff
path: root/10-renewcerts
blob: f08ed9e2880318814cad45087dd7cfd933b91639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# $FreeBSD$
#
# Renew certbot certificates
#

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
    . /etc/defaults/periodic.conf
    source_periodic_confs
fi

case "$daily_renewcerts_enable" in
    [Yy][Ee][Ss])
        certbot renew && rc=0 || rc=3;;
    *)  rc=0;;
esac

exit $rc