|
@@ -5618,6 +5618,15 @@ function configure_imap {
|
5618
|
5618
|
if grep -Fxq "configure_imap" $COMPLETION_FILE; then
|
5619
|
5619
|
return
|
5620
|
5620
|
fi
|
|
5621
|
+
|
|
5622
|
+ # add directories if needed
|
|
5623
|
+ if [ ! -d /usr/share/dovecot/protocols.d ]; then
|
|
5624
|
+ mkdir -p mkdir -p /usr/share/dovecot/protocols.d
|
|
5625
|
+ fi
|
|
5626
|
+ if [ ! -d /etc/dovecot/conf.d ]; then
|
|
5627
|
+ mkdir -p /etc/dovecot/conf.d
|
|
5628
|
+ fi
|
|
5629
|
+
|
5621
|
5630
|
apt-get -y install dovecot-common dovecot-imapd
|
5622
|
5631
|
|
5623
|
5632
|
if [ ! -d /etc/dovecot ]; then
|