Created
June 21, 2018 11:24
-
-
Save stepansantalov/51b6c26674cc07dcba7ed239e928eea0 to your computer and use it in GitHub Desktop.
Automatic LetsEncrypt certificate update for /etc/cron.monthly/
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 | |
temp_file="/tmp/cbrn.txt" | |
email="" | |
certbot renew > $temp_file 2>&1 | |
mail -s "Letsencrypt certificates renewal" $email < $temp_file | |
rm $temp_file | |
service nginx reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment