Adding experimental letsencrypt support

This commit is contained in:
Ric Harvey
2016-07-22 15:43:36 +01:00
parent 9bd2dd0732
commit 4b3ce4b402
3 changed files with 47 additions and 4 deletions

13
scripts/letsencrypt-renew Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Lets Encrypt
if [ -z "$DOMAIN" ]; then
echo "You need to have \$DOMAIN set"
else
if [ -f /etc/letsencrypt/live/${DOMAIN}/fullchain.pem ]; then
cerbot renew
supervisorctl restart nginx
else
echo "There is no cert to renew"
fi
fi