From c6f2fd36e0a8188e1f6b2a15b292e3d0a5610ac4 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Sun, 19 Mar 2023 17:18:01 +0100 Subject: =?UTF-8?q?=F0=9F=8E=89=20Initial=20commit=20of=20infra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 10-renewcerts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 10-renewcerts (limited to '10-renewcerts') diff --git a/10-renewcerts b/10-renewcerts new file mode 100644 index 0000000..f08ed9e --- /dev/null +++ b/10-renewcerts @@ -0,0 +1,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 -- cgit v1.2.3