don't renew if not using LE

This commit is contained in:
Matthew Hodgson
2024-11-08 10:27:20 +00:00
parent 196b10fb11
commit 468c33d142

View File

@@ -94,7 +94,7 @@ services:
volumes: volumes:
- ${VOLUME_PATH}/data/certbot/conf:/etc/letsencrypt - ${VOLUME_PATH}/data/certbot/conf:/etc/letsencrypt
- ${VOLUME_PATH}/data/certbot/www:/var/www/certbot - ${VOLUME_PATH}/data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" entrypoint: "/bin/sh -c 'trap exit TERM; while [ -f /etc/letsencrypt/live ]; do certbot renew; sleep 12h & wait $${!}; done;'"
depends_on: depends_on:
init: init:
condition: service_completed_successfully condition: service_completed_successfully