From: Zeljko Boros Date: Fri, 14 May 2021 14:32:18 +0000 (+0200) Subject: postinst mail_privileged_grup = mail check and sed X-Git-Tag: debian/1%2.3.4.1+cn10u3~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=0425a071bf6c08b013b9dcd92f03fe0c2e5067ad;p=dovecot-cn.git postinst mail_privileged_grup = mail check and sed --- diff --git a/debian/postinst b/debian/postinst index 95c1ccb..e02759c 100755 --- a/debian/postinst +++ b/debian/postinst @@ -16,6 +16,12 @@ cp_check_and_sed 'disable_plaintext_auth.*yes' \ 's/disable_plaintext_auth.*$/disable_plaintext_auth = no/g' \ /etc/dovecot/conf.d/10-auth.conf || true +if ! grep -q "mail_privileged_group.*mail$" /etc/dovecot/conf.d/10-mail.conf \ + cp_check_and_sed 'mail_privileged_group' \ + 's/mail_privileged_group.*$/mail_privileged_group = mail/g' \ + /etc/dovecot/conf.d/10-mail.conf || true +fi + cp_check_and_sed '#imap_client_workarounds' \ 's/#imap_client_workarounds/imap_client_workarounds/g' \ /etc/dovecot/conf.d/20-imap.conf || true