Last active
June 1, 2019 22:20
-
-
Save ceberous/abc7167b3019688ecaf4812f0c9b349a to your computer and use it in GitHub Desktop.
Lets Encrypt Auto Renew
This file contains hidden or 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
| #!/bin/bash | |
| ufw disable | |
| pkill letsencrypt,certbot | |
| find / -type f -name ".certbot.lock" | |
| find / -type f -name ".certbot.lock" -exec rm {} \; | |
| /opt/letsencrypt/certbot-auto renew >> /var/log/letsencrypt-renewal.log | |
| /bin/systemctl reload nginx | |
| /usr/bin/certbot renew --nginx | |
| ufw enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment