Pārlūkot izejas kodu

Add dovecot directories

Bob Mottram 9 gadus atpakaļ
vecāks
revīzija
183b528445
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9
    0
      src/freedombone

+ 9
- 0
src/freedombone Parādīt failu

@@ -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