Created
February 14, 2016 20:58
-
-
Save haukurk/8f51868539140fb85a49 to your computer and use it in GitHub Desktop.
Simple renewal script for letsencrypt standalone server
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/sh | |
service nginx stop # or whatever your webserver is | |
if ! /root/letsencrypt/letsencrypt-auto certonly --standalone --email [email protected] -d farcore.farapp.io -d farcore-test.farapp.io > /var/log/letsencrypt/renew.log 2>&1 ; then | |
echo Automated renewal failed: | |
cat /var/log/letsencrypt/renew.log | |
exit 1 | |
fi | |
service nginx start # or whatever your webserver is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment