Add dovecot directories

This commit is contained in:
Bob Mottram 2015-06-20 18:39:12 +01:00
parent 5a7b496de7
commit 183b528445
1 changed files with 9 additions and 0 deletions

View File

@ -5618,6 +5618,15 @@ function configure_imap {
if grep -Fxq "configure_imap" $COMPLETION_FILE; then
return
fi
# add directories if needed
if [ ! -d /usr/share/dovecot/protocols.d ]; then
mkdir -p mkdir -p /usr/share/dovecot/protocols.d
fi
if [ ! -d /etc/dovecot/conf.d ]; then
mkdir -p /etc/dovecot/conf.d
fi
apt-get -y install dovecot-common dovecot-imapd
if [ ! -d /etc/dovecot ]; then