LetsEncrypt Auto Renew Scripts
Last active
July 10, 2019 02:48
-
-
Save geekeren/0fd8d23698a1fab3b48620907e267635 to your computer and use it in GitHub Desktop.
LetsEncrypt Auto Renew Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /wordpress | |
certbot renew --renew-hook "docker-compose restart wordpress" > /var/log/cert_renew/"$(date "+%Y-%m-%d-%H:%M").txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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