Commit 6b4e0201 authored by Paul Cammish's avatar Paul Cammish
Browse files

Merge branch 'kelduum-buster-testing-patch-37018' into 'buster-testing'

Update mail/sbin/sympl-mail-dovecot-sni, mail/debian/changelog files

See merge request !92
parents 1696ecf1 36ce53c0
sympl-mail (10.0.190708.0) stable; urgency=medium
* Re-enable Dovecot SNI
-- Paul Cammish <sympl@kelduum.net> Mon, 08 Jul 2019 22:13:14 +0100
sympl-mail (10.0.190707.0) stable; urgency=medium sympl-mail (10.0.190707.0) stable; urgency=medium
* Fixed unhandled input * Fixed unhandled input
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -e set -e
if [ ! -L '/srv/*/config/ssl/current' ]; then if [ "$( find -L /srv -mindepth 5 -maxdepth 5 -name 'ssl.crt' -path '*/config/ssl/current/*' -print | wc -l )" == "0" ]; then
# No certs avaialable, so check if /etc/dovecot/sympl.d/10-main/60-sni exists # No certs avaialable, so check if /etc/dovecot/sympl.d/10-main/60-sni exists
if [ -f /etc/dovecot/sympl.d/10-main/60-sni ]; then if [ -f /etc/dovecot/sympl.d/10-main/60-sni ]; then
# it exists, so remove it # it exists, so remove it
...@@ -21,7 +21,7 @@ if [ ! -L '/srv/*/config/ssl/current' ]; then ...@@ -21,7 +21,7 @@ if [ ! -L '/srv/*/config/ssl/current' ]; then
fi fi
fi fi
for certificate in $( find -L '/srv/*/config/ssl/current' -name 'ssl.crt' -print ); do for certificate in $( find -L /srv -mindepth 5 -maxdepth 5 -name 'ssl.crt' -path '*/config/ssl/current/*' -print ); do
certpath="$( echo $certificate | sed 's|/config/ssl/current/.*$|/config/ssl/current|' )" certpath="$( echo $certificate | sed 's|/config/ssl/current/.*$|/config/ssl/current|' )"
# Ensure there is a matching key file, and the path doesnt include an underscore # Ensure there is a matching key file, and the path doesnt include an underscore
if [ -f "${certpath}/ssl.key" ] && [ -f "${certpath}/ssl.bundle" ] && [ "$certpath" != "*_*" ] ; then if [ -f "${certpath}/ssl.key" ] && [ -f "${certpath}/ssl.bundle" ] && [ "$certpath" != "*_*" ] ; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment