From 30ce2ce362db3227dce3b94a8fe8821d11df3870 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 16 Nov 2016 09:52:37 +0000 Subject: [PATCH] Fix dovecot's odd cert definition format --- src/freedombone-utils-web | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index f85aa659..e8d76622 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -758,9 +758,9 @@ function update_default_domain { fi if [ -d /etc/dovecot ]; then - if ! grep -q "ssl_cert = /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem" /etc/dovecot/conf.d/10-ssl.conf; then - sed -i "s|#ssl_cert =.*|ssl_cert = /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem|g" /etc/dovecot/conf.d/10-ssl.conf - sed -i "s|ssl_cert =.*|ssl_cert = /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem|g" /etc/dovecot/conf.d/10-ssl.conf + if ! grep -q "ssl_cert =