extra certbot container removed

This commit is contained in:
2026-01-25 20:09:49 +00:00
parent 13dbe43c78
commit bf0022eb20
2 changed files with 13 additions and 11 deletions

11
certbot/entrypoint.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
if [ ! -d /etc/letsencrypt/live/${DOMAIN} ]; then
certbot certonly --webroot -w /var/www/certbot --email ${EMAIL} -d ${DOMAIN} -d www.${DOMAIN} --agree-tos --non-interactive;
fi;
trap exit TERM;
while :; do
certbot renew --webroot -w /var/www/certbot;
sleep 12h & wait $${!};
done