From 2d479de3012746d22c0261d2278663e5c0acd415 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Thu, 28 Aug 2014 19:49:16 +0530 Subject: [PATCH] Fixed Ubuntu 12.04 file not found error --- .../stack/install/mail/ee_mod_setup_dovecot.sh | 3 +-- templates/mail/auth-sql.conf.ext | 13 +++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 templates/mail/auth-sql.conf.ext diff --git a/src/modules/stack/install/mail/ee_mod_setup_dovecot.sh b/src/modules/stack/install/mail/ee_mod_setup_dovecot.sh index b4a7a3ad..fb75771c 100644 --- a/src/modules/stack/install/mail/ee_mod_setup_dovecot.sh +++ b/src/modules/stack/install/mail/ee_mod_setup_dovecot.sh @@ -34,8 +34,7 @@ function ee_mod_setup_dovecot() cp -v /usr/share/easyengine/mail/dovecot-sql.conf.ext /etc/dovecot/dovecot-sql.conf.ext &>> $EE_COMMAND_LOG \ || ee_lib_error "Unable to copy dovecot-sql.conf.ext, exit status = " $? - # Configuring auth-sql.conf.ext - sed -i "s/# driver = prefetch/userdb {\n driver = prefetch\n}/" /etc/dovecot/conf.d/auth-sql.conf.ext \ + cp -v /usr/share/easyengine/mail/auth-sql.conf.ext /etc/dovecot/conf.d/auth-sql.conf.ext || ee_lib_error "Unable to setup auth-sql.conf.ext, exit status = " $? diff --git a/templates/mail/auth-sql.conf.ext b/templates/mail/auth-sql.conf.ext new file mode 100644 index 00000000..b302f482 --- /dev/null +++ b/templates/mail/auth-sql.conf.ext @@ -0,0 +1,13 @@ +passdb { +driver = sql +args = /etc/dovecot/dovecot-sql.conf.ext +} + +userdb { +driver = prefetch +} + +userdb { +driver = sql +args = /etc/dovecot/dovecot-sql.conf.ext +} \ No newline at end of file