mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
docker: Fix using a domain directory path as a domain name
There is a bug causing an invalid config in the generated /etc/dovecot/auto-ssl.conf, e.g.: ssl_cert = </etc/letsencrypt/live//etc/letsencrypt/live/mail.grouplok.com/fullchain.pem ssl_key = </etc/letsencrypt/live//etc/letsencrypt/live/mail.grouplok.com/privkey.pem This patch fixes it by using the domain name instead of the path, which matches the original intent. https://github.com/albertito/chasquid/pull/42 Amended-by: Alberto Bertogli <albertito@blitiri.com.ar> Minor edits to the commit message.
This commit is contained in:
committed by
Alberto Bertogli
parent
27fd7e7220
commit
359d45a3de
@@ -62,7 +62,7 @@ for i in /etc/letsencrypt/live/*; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# We need one domain to use as a default - pick the last one.
|
# We need one domain to use as a default - pick the last one.
|
||||||
ONE_DOMAIN=$i
|
ONE_DOMAIN=$D
|
||||||
|
|
||||||
# Check that there's at least once certificate at this point.
|
# Check that there's at least once certificate at this point.
|
||||||
if [ "$CERT_DOMAINS" == "" ]; then
|
if [ "$CERT_DOMAINS" == "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user