Explorar el Código

Skip ACME client for other certificates than LE

andryyy hace 8 años
padre
commit
5aba885b58
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      data/Dockerfiles/acme/docker-entrypoint.sh

+ 6 - 0
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