diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e15b87086d5a1a670aa536b138af0a03029d052..391ee9ed59bf56ad7897c786f5b4cb1c48407225 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,9 @@ stages: - git describe --all - echo "Building '$CI_BUILD_NAME' in directory '$PACKAGE'" - cd $PACKAGE + - dpkg-parsechangelog 2> /tmp/error + - cat /tmp/error + - if [ -s /tmp/error ]; then exit 1; fi - dpkg-buildpackage --no-sign --build=full - cd .. - mkdir deb diff --git a/mail/debian/changelog b/mail/debian/changelog index bc3b630f5b9c45db4ed3a6f096db40d3108f63c8..641154682a94eae8fb4c70ac4954cbc7f810790e 100644 --- a/mail/debian/changelog +++ b/mail/debian/changelog @@ -1,3 +1,9 @@ +sympl-mail (10.0.190708.0) stable; urgency=medium + + * Re-enable Dovecot SNI + + -- Paul Cammish Mon, 08 Jul 2019 22:13:14 +0100 + sympl-mail (10.0.190707.0) stable; urgency=medium * Fixed unhandled input diff --git a/mail/sbin/sympl-mail-dovecot-sni b/mail/sbin/sympl-mail-dovecot-sni index ff8de6bbb28959febd95ebab5604e1195f38c0e3..21ed2b7442366912b454615691dfb18af67a54b1 100755 --- a/mail/sbin/sympl-mail-dovecot-sni +++ b/mail/sbin/sympl-mail-dovecot-sni @@ -2,7 +2,7 @@ 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 if [ -f /etc/dovecot/sympl.d/10-main/60-sni ]; then # it exists, so remove it @@ -21,7 +21,7 @@ if [ ! -L '/srv/*/config/ssl/current' ]; then 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|' )" # 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