Letsencrypt : do not check the optional cert.pem

This commit is contained in:
Richard Février 2017-06-25 20:20:29 +02:00
parent 5a86193dbf
commit 82cf6c8be8
1 changed files with 1 additions and 2 deletions

View File

@ -747,8 +747,7 @@ function _setup_ssl() {
case $SSL_TYPE in case $SSL_TYPE in
"letsencrypt" ) "letsencrypt" )
# letsencrypt folders and files mounted in /etc/letsencrypt # letsencrypt folders and files mounted in /etc/letsencrypt
if [ -e "/etc/letsencrypt/live/$HOSTNAME/cert.pem" ] \ if [ -e "/etc/letsencrypt/live/$HOSTNAME/fullchain.pem" ]; then
&& [ -e "/etc/letsencrypt/live/$HOSTNAME/fullchain.pem" ]; then
KEY="" KEY=""
if [ -e "/etc/letsencrypt/live/$HOSTNAME/privkey.pem" ]; then if [ -e "/etc/letsencrypt/live/$HOSTNAME/privkey.pem" ]; then
KEY="privkey" KEY="privkey"