From 8e794d6695bd9b798db24efb5d98a1db2c5852f2 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Thu, 27 Dec 2018 11:09:24 -0500 Subject: [PATCH] add cronjob to renew ssl certs --- override/etc/periodic/daily/watcher-certbot | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 override/etc/periodic/daily/watcher-certbot diff --git a/override/etc/periodic/daily/watcher-certbot b/override/etc/periodic/daily/watcher-certbot new file mode 100755 index 0000000..759604c --- /dev/null +++ b/override/etc/periodic/daily/watcher-certbot @@ -0,0 +1,7 @@ +#!/bin/bash + +if [[ $(ls /mnt/config/ssl/live | wc -l) -gt 0 ]]; then + certbot renew -n --agree-tos --rsa-key-size 4096 --config-dir /mnt/config/ssl --logs-dir /mnt/config/log --max-log-backups 0 --work-dir /tmp/certbot +fi + +exit 0 \ No newline at end of file