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