From 3a14466c6c5ee7e98de04cf44cd45c374259d64d Mon Sep 17 00:00:00 2001 From: William Brawner Date: Sat, 30 Oct 2021 00:56:34 +0000 Subject: [PATCH] Add monthly cronjob to renew certs --- Dockerfile | 1 + renew | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 renew diff --git a/Dockerfile b/Dockerfile index 637363f..71c46cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM certbot/dns-digitalocean:latest COPY new-domain /usr/bin/new-domain +COPY renew /etc/periodic/monthly/renew ENTRYPOINT /usr/sbin/crond -f diff --git a/renew b/renew new file mode 100644 index 0000000..96845ad --- /dev/null +++ b/renew @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +/usr/local/bin/certbot renew +