blob: c2a776f6d1c5b3bb8242c628a613a0cfb844cb0f (
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
30
31
32
|
#!/bin/sh
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
PATH=$PATH:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin
export PATH
case "$weekly_lego_enable" in
[Yy][Ee][Ss])
echo
echo "Checking Let's Encrypt certificate status:"
if [ -x "$weekly_lego_renewscript" ] ; then
echo "$weekly_lego_renewscript" | su -fm _lego || exit 3
fi
if [ -n "$weekly_lego_deployscript" ] ; then
if [ -x "$weekly_lego_deployscript" ] ; then
echo "Deploying Let's Encrypt certificates:"
$weekly_lego_deployscript || exit 3
else
echo 'Skipped, deploy script does not exist or is not executable'
fi
fi
;;
*)
;;
esac
|