Skip to content

Commit

Permalink
Fixed: CentOS 7 still uses Dovecot 2.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
iredmail committed Jul 2, 2020
1 parent 3f911dd commit 4b19b99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conf/dovecot
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ export DOVECOT_SYSLOG_FILE_SIEVE="${DOVECOT_LOG_DIR}/sieve.log"
# Log rotate config file
export DOVECOT_LOGROTATE_FILE="${LOGROTATE_DIR}/dovecot"

if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
if [ X"${DISTRO}" == X'RHEL' ]; then
if [ X"${DISTRO_VERSION}" == X'7' ]; then
export DOVECOT_VERSION='2.2'
fi
elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
export DOVECOT_DELIVER_BIN='/usr/lib/dovecot/deliver'

# Debian 9, Ubuntu 18.04.
Expand Down

0 comments on commit 4b19b99

Please sign in to comment.