From: Guo Xiang Tan Date: Mon, 29 Aug 2016 21:17:46 +0000 (+0800) Subject: FIX: Don't force a cert issue everytime. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=278a42fceeee14f2a137fe08f8bf3ab79ff9c1f0;p=discourse_docker.git FIX: Don't force a cert issue everytime. --- diff --git a/templates/web.letsencrypt.ssl.template.yml b/templates/web.letsencrypt.ssl.template.yml index 3a85554..a305939 100644 --- a/templates/web.letsencrypt.ssl.template.yml +++ b/templates/web.letsencrypt.ssl.template.yml @@ -55,7 +55,7 @@ hooks: #!/bin/bash /usr/sbin/nginx -c /etc/nginx/letsencrypt.conf - LE_WORKING_DIR="${LETSENCRYPT_DIR}" $$ENV_LETSENCRYPT_DIR/acme.sh --issue -d $$ENV_DISCOURSE_HOSTNAME -k 4096 -w /var/www/discourse/public --force + LE_WORKING_DIR="${LETSENCRYPT_DIR}" $$ENV_LETSENCRYPT_DIR/acme.sh --issue -d $$ENV_DISCOURSE_HOSTNAME -k 4096 -w /var/www/discourse/public if [ ! "$(cd $$ENV_LETSENCRYPT_DIR/$$ENV_DISCOURSE_HOSTNAME && openssl verify -CAfile ca.cer fullchain.cer | grep "OK")" ]; then # Try to issue the cert again if something goes wrong