Browse Source

Fixed Dovcot not removing in Ubuntu 12.04

old-stable
gau1991 11 years ago
parent
commit
b9a4593191
  1. 5
      src/modules/stack/install/mail/ee_mod_setup_dovecot.sh
  2. 2
      src/modules/stack/remove/mail/ee_mod_remove_dovecot.sh

5
src/modules/stack/install/mail/ee_mod_setup_dovecot.sh

@ -58,8 +58,9 @@ function ee_mod_setup_dovecot()
|| ee_lib_error "Unable to setup Dovecot SSL certificate path, exit status = " $?
# Setting Dovecot init.d script
cp -v /usr/share/easyengine/mail/dovecot /etc/init.d/dovecot &>> $EE_COMMAND_LOG
if [ ! -f /etc/init.d/dovecot ];then
cp -v /usr/share/easyengine/mail/dovecot /etc/init.d/dovecot &>> $EE_COMMAND_LOG
fi
# Add autocreate plugin
sed -i "s'#mail_plugins = \$mail_plugins'mail_plugins = \$mail_plugins autocreate'" /etc/dovecot/conf.d/20-imap.conf \
|| ee_lib_error "Unable to setup Dovecot autocreate plugin, exit status = " $?

2
src/modules/stack/remove/mail/ee_mod_remove_dovecot.sh

@ -7,4 +7,6 @@ function ee_mod_remove_dovecot()
|| ee_lib_error "Unable to $EE_SECOND Dovecot, exit status = " $?
userdel -rf vmail || ee_lib_error "Unable to Remove user vmail, exit status = " $?
rm -f /etc/init.d/dovecot
}

Loading…
Cancel
Save