From 7553dfb592cbae4bdef930d9977dd4ddd4c16262 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Wed, 3 Sep 2014 14:57:31 +0530 Subject: [PATCH] Added Dovecot repo for Debian 6 --- .../install/mail/ee_mod_install_dovecot.sh | 4 ++++ .../stack/install/mail/ee_mod_repo_dovecot.sh | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/modules/stack/install/mail/ee_mod_repo_dovecot.sh diff --git a/src/modules/stack/install/mail/ee_mod_install_dovecot.sh b/src/modules/stack/install/mail/ee_mod_install_dovecot.sh index e7ce0ca8..18bc1f38 100644 --- a/src/modules/stack/install/mail/ee_mod_install_dovecot.sh +++ b/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" diff --git a/src/modules/stack/install/mail/ee_mod_repo_dovecot.sh b/src/modules/stack/install/mail/ee_mod_repo_dovecot.sh new file mode 100644 index 00000000..677fb1a1 --- /dev/null +++ b/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 +}