Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Certbot CRON

CERTBOT RENEW CERTIFICATE CRON

#dev/server #dev/snippets

touch cron_log.log
touch renew-certs
chmod 777 renew-certs

Crontab

crontab -e

0 4 * * * /root/renew-certs;

renew-certs

#!/bin/bash

certbot renew --renew-hook="service nginx restart" >> /root/cron_log.log;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment