summaryrefslogtreecommitdiff
path: root/10-renewcerts
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-03-19 17:18:01 +0100
committerAlbert Cervin <albert@acervin.com>2023-03-19 17:18:01 +0100
commitc6f2fd36e0a8188e1f6b2a15b292e3d0a5610ac4 (patch)
treed1c21cf0d9a2529154b33438bd91821268be5eb4 /10-renewcerts
downloaddatagubbe-setup-c6f2fd36e0a8188e1f6b2a15b292e3d0a5610ac4.tar.gz
datagubbe-setup-c6f2fd36e0a8188e1f6b2a15b292e3d0a5610ac4.tar.xz
datagubbe-setup-c6f2fd36e0a8188e1f6b2a15b292e3d0a5610ac4.zip
🎉 Initial commit of infraHEADmain
Diffstat (limited to '10-renewcerts')
-rw-r--r--10-renewcerts22
1 files changed, 22 insertions, 0 deletions
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