Source

iredmail / iRedMail / functions / dovecot2.sh

Diff from to

File iRedMail/functions/dovecot2.sh

 
     ECHO_DEBUG "Configure dovecot: ${DOVECOT_CONF}."
 
-    cp ${SAMPLE_DIR}/dovecot/dovecot2.conf ${DOVECOT_CONF}
+    # FreeBSD ships Dovecot-2.2
+    if [ X"${DISTRO}" == X'FREEBSD' ]; then
+        cp ${SAMPLE_DIR}/dovecot/dovecot22.conf ${DOVECOT_CONF}
+    else
+        cp ${SAMPLE_DIR}/dovecot/dovecot2.conf ${DOVECOT_CONF}
+    fi
     chmod 0664 ${DOVECOT_CONF}
 
     # Base directory.