Created
March 8, 2017 16:54
-
-
Save fuyufjh/a4be3f4a9b3218fd15ebbb386e2da637 to your computer and use it in GitHub Desktop.
Certbot Renew
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
#!/usr/bin/env bash | |
printf "\nattempt to renew certificates at " >>/var/log/certbot_cron.log 2>&1 | |
date >>/var/log/certbot_cron.log 2>&1 | |
certbot renew --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx" --standalone-supported-challenges http-01 >>/var/log/certbot_cron.log 2>&1 | |
printf "renew finished\n" >>/var/log/certbot_cron.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment