Skip to content

Commit 5170e5f

Browse files
authored
Dovecot fix namespace inbox=yes only for Debian9
1 parent 8a1f834 commit 5170e5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/vst-install-debian.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,9 @@ if [ "$dovecot" = 'yes' ]; then
10791079
cp -rf $vestacp/dovecot /etc/
10801080
cp -f $vestacp/logrotate/dovecot /etc/logrotate.d/
10811081
chown -R root:root /etc/dovecot*
1082-
sed -i "s#namespace inbox {#namespace inbox {\n inbox = yes#" /etc/dovecot/conf.d/15-mailboxes.conf
1082+
if [ "$release" -eq 9 ]; then
1083+
sed -i "s#namespace inbox {#namespace inbox {\n inbox = yes#" /etc/dovecot/conf.d/15-mailboxes.conf
1084+
fi
10831085
update-rc.d dovecot defaults
10841086
service dovecot start
10851087
check_result $? "dovecot start failed"

0 commit comments

Comments
 (0)