From cfa6100e225fc2b6e4316b3ccee77098962df973 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 11 Oct 2024 09:12:28 +0200 Subject: [PATCH] fix: [letsencrypt] prevent ``letsencrypt`` to remove crontabs from ``cron`` --- letsencrypt/lib/common | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/letsencrypt/lib/common b/letsencrypt/lib/common index dd525ce..e7d7fe5 100644 --- a/letsencrypt/lib/common +++ b/letsencrypt/lib/common @@ -140,14 +140,14 @@ has_existing_cert() { letsencrypt_cert_info() { local domain="$1" - compose -q --no-hooks run -T --rm "$SERVICE_NAME" \ + compose -q --no-hooks --no-pre-deploy run -T --rm "$SERVICE_NAME" \ crt info "$domain" } letsencrypt_cert_delete() { local domain="$1" - compose --debug --no-hooks run --rm "$SERVICE_NAME" \ + compose --debug --no-hooks --no-pre-deploy run --rm "$SERVICE_NAME" \ certbot delete --cert-name "$domain" } @@ -201,7 +201,7 @@ valid_existing_cert() { get_domain_list() { - compose -q --no-hooks run --rm "$SERVICE_NAME" crt list + compose -q --no-hooks --no-pre-deploy run --rm "$SERVICE_NAME" crt list } @@ -240,7 +240,7 @@ crt() { else compose_opts+=("--quiet") fi - compose "${compose_opts[@]}" --no-init --no-relations --add-compose-content "$config" \ + compose "${compose_opts[@]}" --no-init --no-relations --no-pre-deploy --add-compose-content "$config" \ run --service-ports --rm "$SERVICE_NAME" crt "$action" "$@" errlvl="$?"