Skip to content

Instantly share code, notes, and snippets.

@benhg
Created March 4, 2018 23:04
Show Gist options
  • Save benhg/54579d49849d6aea8413183b287a6144 to your computer and use it in GitHub Desktop.
Save benhg/54579d49849d6aea8413183b287a6144 to your computer and use it in GitHub Desktop.
Crontab entry to auto-renew certbot certificates every week and restart apache server
43 6 * * * sudo certbot renew --post-hook "sudo systemctl restart apache2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment