Adding experimental letsencrypt support
This commit is contained in:
13
scripts/letsencrypt-renew
Executable file
13
scripts/letsencrypt-renew
Executable 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
|
||||
Reference in New Issue
Block a user