diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-06-04 10:42:19 +0100 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-06-04 10:56:04 +0100 |
| commit | 15010d062ae276a92065cd6ea7dc94b749e20756 (patch) | |
| tree | 8745f89f933826afbb329b4fc447186a1200610d /900.lfacme.sh.in | |
| parent | 09aa3870070960d37d7bdbb724f4ac7b68395fdf (diff) | |
| download | lfacme-15010d062ae276a92065cd6ea7dc94b749e20756.tar.gz lfacme-15010d062ae276a92065cd6ea7dc94b749e20756.tar.bz2 | |
allow PREFIX to be customised
Diffstat (limited to '900.lfacme.sh.in')
| -rw-r--r-- | 900.lfacme.sh.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/900.lfacme.sh.in b/900.lfacme.sh.in new file mode 100644 index 0000000..f1fae33 --- /dev/null +++ b/900.lfacme.sh.in @@ -0,0 +1,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 |
