Skip to content

Commit 755b1c2

Browse files
author
gau1991
committed
Added Dovecot repo for Debian 6
1 parent 3616907 commit 755b1c2

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
function ee_mod_install_dovecot()
44
{
5+
# Add Dovecot repo for Debian 6
6+
ee_mod_repo_dovecot
7+
ee_lib_apt_get_update
8+
59
# Install Dovecot
610
ee_lib_echo "Installing Dovecot, please wait..."
711
debconf-set-selections <<< "dovecot-core dovecot-core/create-ssl-cert boolean yes"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Setup nginx repository
2+
3+
function ee_mod_repo_dovecot()
4+
{
5+
if [ "$EE_DEBIAN_VERSION" == "squeeze" ];then
6+
7+
# Add Dovecot repository
8+
# Ref:http://wiki2.dovecot.org/PrebuiltBinaries
9+
10+
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 \
12+
|| ee_lib_error "Unable to add Dovecot repository, exit status = " $?
13+
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+
18+
fi
19+
}

0 commit comments

Comments
 (0)