Dovecot fix namespace inbox=yes only for Debian9

This commit is contained in:
dpeca 2018-11-04 03:35:17 +01:00 committed by GitHub
commit 5170e5f5aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1079,7 +1079,9 @@ if [ "$dovecot" = 'yes' ]; then
cp -rf $vestacp/dovecot /etc/
cp -f $vestacp/logrotate/dovecot /etc/logrotate.d/
chown -R root:root /etc/dovecot*
sed -i "s#namespace inbox {#namespace inbox {\n inbox = yes#" /etc/dovecot/conf.d/15-mailboxes.conf
if [ "$release" -eq 9 ]; then
sed -i "s#namespace inbox {#namespace inbox {\n inbox = yes#" /etc/dovecot/conf.d/15-mailboxes.conf
fi
update-rc.d dovecot defaults
service dovecot start
check_result $? "dovecot start failed"