refactor: certbot stuff
it's weird
This commit is contained in:
parent
fa8abf4b2c
commit
b85e943fd1
1 changed files with 10 additions and 3 deletions
|
@ -4,9 +4,16 @@ trap exit TERM
|
||||||
|
|
||||||
if [ -n "${CERTBOT_DOMAINS}" ]; then
|
if [ -n "${CERTBOT_DOMAINS}" ]; then
|
||||||
echo "registering..."
|
echo "registering..."
|
||||||
certbot --nginx -n --keep --agree-tos \
|
if ! certbot show_account; then
|
||||||
-m "${CERTBOT_EMAIL}" \
|
certbot register -n \
|
||||||
-d "${CERTBOT_DOMAINS}"
|
--agree-tos \
|
||||||
|
-m "${CERTBOT_EMAIL}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for d in $(echo "${CERTBOT_DOMAINS}" | sed 's/,/ /g'); do
|
||||||
|
echo "requesting for $d..."
|
||||||
|
certbot --nginx -n --keep -d "$d"
|
||||||
|
done
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
echo "renewing domains..."
|
echo "renewing domains..."
|
||||||
|
|
Loading…
Reference in a new issue