add cronjob to renew ssl certs

This commit is contained in:
Daniel Wolf 2018-12-27 11:09:24 -05:00
parent e8dd27e606
commit 8e794d6695
1 changed files with 7 additions and 0 deletions

View File

@ -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