14 lines
253 B
Bash
Executable File
14 lines
253 B
Bash
Executable File
#!/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
|