From b0754ee2c4b5c716d1d38cf8ffa65da810a3faae Mon Sep 17 00:00:00 2001 From: Olivier Leger Date: Wed, 13 Sep 2023 16:09:53 -0400 Subject: [PATCH] Check from domains folder when renewing certificate --- templates/nginx-certbot/init-letsencrypt.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nginx-certbot/init-letsencrypt.sh.tpl b/templates/nginx-certbot/init-letsencrypt.sh.tpl index 3d2b1f6..87e8d33 100644 --- a/templates/nginx-certbot/init-letsencrypt.sh.tpl +++ b/templates/nginx-certbot/init-letsencrypt.sh.tpl @@ -13,7 +13,7 @@ DOCKER_COMPOSE_CMD="$$(which ${DOCKER_COMPOSE_CMD})" CURL_CMD=$$(which curl) -if [ -d "$$DATA_PATH" ]; then +if [ -d "$$DATA_PATH/conf/live/$$DOMAINS" ]; then read -p "Existing data found for $$DOMAINS_CSV. Continue and replace existing certificate? (y/N) " decision if [ "$$decision" != "Y" ] && [ "$$decision" != "y" ]; then exit