bootstrap main site also
This commit is contained in:
parent
5df18ce97c
commit
5d3d7ce80e
1 changed files with 10 additions and 8 deletions
|
@ -5,7 +5,8 @@ case $1 in
|
|||
# Renew certificates, trust in certbot's algorithms
|
||||
renew) /usr/bin/certbot renew --quit --agree-tos ;;
|
||||
bootstrap)
|
||||
test -d "/etc/letsencrypt/live/api.${SUTTY}" && exit 0
|
||||
for site in ${SUTTY} api.${SUTTY}; do
|
||||
test -d "/etc/letsencrypt/live/${site}" && exit 0
|
||||
|
||||
# Get the certificate for the domain, the webserver will need
|
||||
# access to this directory
|
||||
|
@ -13,7 +14,8 @@ case $1 in
|
|||
--webroot \
|
||||
--agree-tos \
|
||||
--webroot-path /var/lib/letsencrypt \
|
||||
-d "api.${SUTTY}" ;;
|
||||
-d "${site}"
|
||||
done ;;
|
||||
# Generate certificates
|
||||
*)
|
||||
# Save headers here
|
||||
|
|
Loading…
Reference in a new issue