Skip to content

Instantly share code, notes, and snippets.

@geekeren
Last active July 10, 2019 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekeren/0fd8d23698a1fab3b48620907e267635 to your computer and use it in GitHub Desktop.
Save geekeren/0fd8d23698a1fab3b48620907e267635 to your computer and use it in GitHub Desktop.
LetsEncrypt Auto Renew Scripts

LetsEncrypt Auto Renew Scripts

cd /wordpress
certbot renew --renew-hook "docker-compose restart wordpress" > /var/log/cert_renew/"$(date "+%Y-%m-%d-%H:%M").txt"
# run 'crontab -e' and add this line at bottom
0 0 * * 0 root /bin/sh /cert_renew.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment