Skip to content

Commit cdb6dbd

Browse files
author
gau1991
committed
Changed Dovcot Repo
1 parent 755b1c2 commit cdb6dbd

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/modules/stack/install/mail/ee_mod_install_dovecot.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ function ee_mod_install_dovecot()
1010
ee_lib_echo "Installing Dovecot, please wait..."
1111
debconf-set-selections <<< "dovecot-core dovecot-core/create-ssl-cert boolean yes"
1212
debconf-set-selections <<< "dovecot-core dovecot-core/ssl-cert-name string $(hostname -f)"
13-
$EE_APT_GET install dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved \
14-
|| ee_lib_error "Unable to install Dovecot, exit status = " $?
13+
14+
# Debian 6 doesn't provide Dovecot 2.x
15+
if [ "$EE_DEBIAN_VERSION" == "squeeze" ]; then
16+
$EE_APT_GET -t squeeze-backports install dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved \
17+
|| ee_lib_error "Unable to install Dovecot, exit status = " $?
18+
else
19+
$EE_APT_GET install dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved \
20+
|| ee_lib_error "Unable to install Dovecot, exit status = " $?
21+
fi
1522

1623
}

src/modules/stack/install/mail/ee_mod_repo_dovecot.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ function ee_mod_repo_dovecot()
55
if [ "$EE_DEBIAN_VERSION" == "squeeze" ];then
66

77
# Add Dovecot repository
8-
# Ref:http://wiki2.dovecot.org/PrebuiltBinaries
9-
108
ee_lib_echo "Adding Dovecot repository, please wait..."
11-
echo "deb http://xi.rename-it.nl/debian/ oldstable-auto/dovecot-2.2 main" > /etc/apt/sources.list.d/dovecot-$(lsb_release -sc).list \
9+
echo "deb http://http.debian.net/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/dovecot-$(lsb_release -sc).list \
1210
|| ee_lib_error "Unable to add Dovecot repository, exit status = " $?
1311

14-
# Fetch and install Dovecot GnuPG key
15-
wget -O - http://xi.rename-it.nl/debian/archive.key | apt-key add - \
16-
|| ee_lib_error "Unable to fetch Dovecot GnuPG key, exit status = " $?
17-
1812
fi
1913
}

0 commit comments

Comments
 (0)