Browse Source

fix: [letsencrypt] prevent ``letsencrypt`` to remove crontabs from ``cron``

bgallet/nextcloud
Valentin Lab 2 months ago
parent
commit
cfa6100e22
  1. 8
      letsencrypt/lib/common

8
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="$?"

Loading…
Cancel
Save