From feac2d0d1f5b8539012326c4c277bf3573754199 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Thu, 30 Oct 2014 17:13:00 +0530 Subject: [PATCH] Adding Dovecot installtion to log file --- src/modules/stack/install/mail/ee_mod_install_dovecot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 09225e4b..fafb37d8 100644 --- a/src/modules/stack/install/mail/ee_mod_install_dovecot.sh +++ b/src/modules/stack/install/mail/ee_mod_install_dovecot.sh @@ -11,12 +11,13 @@ function ee_mod_install_dovecot() debconf-set-selections <<< "dovecot-core dovecot-core/create-ssl-cert boolean yes" debconf-set-selections <<< "dovecot-core dovecot-core/ssl-cert-name string $(hostname -f)" + # 2>&1 is needed as config file is written in STDEER # Debian 6 doesn't provide Dovecot 2.x if [ "$EE_DEBIAN_VERSION" == "squeeze" ]; then - $EE_APT_GET -t squeeze-backports install dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved \ + $EE_APT_GET -t squeeze-backports install dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved 2>&1 \ || ee_lib_error "Unable to install Dovecot, exit status = " $? else - $EE_APT_GET install dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved \ + $EE_APT_GET install dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved 2>&1 \ || ee_lib_error "Unable to install Dovecot, exit status = " $? fi