Ver código fonte

Copy dhparams if not found

andryyy 8 anos atrás
pai
commit
f7bce8b81a
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      data/Dockerfiles/acme/docker-entrypoint.sh

+ 2 - 0
data/Dockerfiles/acme/docker-entrypoint.sh

@@ -36,6 +36,8 @@ else
 	fi
 fi
 
+[[ ! -f ${ACME_BASE}/dhparams.pem ]] && cp ${SSL_EXAMPLE}/dhparams.pem ${ACME_BASE}/dhparams.pem
+
 while true; do
 	if [[ "${SKIP_LETS_ENCRYPT}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
 		echo "SKIP_LETS_ENCRYPT=y, skipping Let's Encrypt..."