mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 18:11:09 +00:00
20 lines
320 B
Bash
20 lines
320 B
Bash
|
#!/usr/bin/env bash
|
||
|
source .env;
|
||
|
|
||
|
if [ "$CERTBOT_INIT" = "true" ]
|
||
|
then
|
||
|
certonly \
|
||
|
--webroot \
|
||
|
--webroot-path=/var/www/certbot \
|
||
|
--email ${EMAIL} \
|
||
|
--agree-tos \
|
||
|
--no-eff-email \
|
||
|
-d ${DOMAIN} \
|
||
|
-d www.${DOMAIN}
|
||
|
else
|
||
|
renew \
|
||
|
--webroot \
|
||
|
--webroot-path \
|
||
|
/var/www/certbot
|
||
|
fi
|