From 5aba885b589e31d9d5d9affd2423c6b3ce334862 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 17 Jun 2017 10:08:12 +0200 Subject: [PATCH] Skip ACME client for other certificates than LE --- data/Dockerfiles/acme/docker-entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/Dockerfiles/acme/docker-entrypoint.sh b/data/Dockerfiles/acme/docker-entrypoint.sh index cc230ab2..b34f94c4 100755 --- a/data/Dockerfiles/acme/docker-entrypoint.sh +++ b/data/Dockerfiles/acme/docker-entrypoint.sh @@ -11,6 +11,12 @@ restart_containers(){ done } +if [[ $(openssl x509 -in ${ACME_BASE}/cert.pem -noout -issuer) != *"Let's Encrypt"* && + $(openssl x509 -in ${ACME_BASE}/cert.pem -noout -issuer) != *"mailcow"* ]]; then + echo "Skipping ACME client" + exit 0 +fi + while true; do declare -a SQL_DOMAIN_ARR