Browse Source

Added Dovecot repo for Debian 6

bugfixes
gau1991 11 years ago
parent
commit
7553dfb592
  1. 4
      src/modules/stack/install/mail/ee_mod_install_dovecot.sh
  2. 19
      src/modules/stack/install/mail/ee_mod_repo_dovecot.sh

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

@ -2,6 +2,10 @@
function ee_mod_install_dovecot()
{
# Add Dovecot repo for Debian 6
ee_mod_repo_dovecot
ee_lib_apt_get_update
# Install Dovecot
ee_lib_echo "Installing Dovecot, please wait..."
debconf-set-selections <<< "dovecot-core dovecot-core/create-ssl-cert boolean yes"

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

@ -0,0 +1,19 @@
# Setup nginx repository
function ee_mod_repo_dovecot()
{
if [ "$EE_DEBIAN_VERSION" == "squeeze" ];then
# Add Dovecot repository
# Ref:http://wiki2.dovecot.org/PrebuiltBinaries
ee_lib_echo "Adding Dovecot repository, please wait..."
echo "deb http://xi.rename-it.nl/debian/ oldstable-auto/dovecot-2.2 main" > /etc/apt/sources.list.d/dovecot-$(lsb_release -sc).list \
|| ee_lib_error "Unable to add Dovecot repository, exit status = " $?
# Fetch and install Dovecot GnuPG key
wget -O - http://xi.rename-it.nl/debian/archive.key | apt-key add - \
|| ee_lib_error "Unable to fetch Dovecot GnuPG key, exit status = " $?
fi
}
Loading…
Cancel
Save