Browse Source

Fixed Sieve Plugin issue

bugfixes
gau1991 10 years ago
parent
commit
7cbf65d681
  1. 15
      bin/update
  2. 9
      src/modules/stack/install/mail/ee_mod_setup_sieve.sh

15
bin/update

@ -444,21 +444,6 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then
if [[ $EE_CURRENT_VERSION < 2.1.1 ]]; then
# Install WP-CLI
ee_ven_install_wpcli
# Configure ManageSieve plugin
if [ -d /var/www/roundcubemail/htdocs ]; then
sed -i "/sieverules_port/d" /var/www/roundcubemail/htdocs/config/config.inc.php
sed -i "s/'sieverules'/'managesieve'/" /var/www/roundcubemail/htdocs/config/config.inc.php
# Configure ManageSieve Plugin
cp -v /var/www/roundcubemail/htdocs/plugins/managesieve/config.inc.php.dist /var/www/roundcubemail/htdocs/plugins/managesieve/config.inc.php &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to configure ManageSieve Roundcube plugin, exit status = " $?
sed -i "s:\$config\['managesieve_port'\] = null:\$config\['managesieve_port'\] = 4190:" /var/www/roundcubemail/htdocs/plugins/managesieve/config.inc.php && \
sed -i "s:/etc/dovecot/sieve/global:/var/lib/dovecot/sieve/default.sieve:" /var/www/roundcubemail/htdocs/plugins/managesieve/config.inc.php \
|| ee_lib_error "Unable to configure ManageSieve Roundcube plugin, exit status = " $?
fi
fi
# Restart service

9
src/modules/stack/install/mail/ee_mod_setup_sieve.sh

@ -28,14 +28,9 @@ function ee_mod_setup_sieve()
|| ee_lib_error "Unable to compile Sieve rules, exit status = " $?
# Configure Roundcube
sed -i "s:\$config\['plugins'\] = array(:\$config\['plugins'\] = array(\n 'managesieve',:" /var/www/roundcubemail/htdocs/config/config.inc.php \
sed -i "s:\$config\['plugins'\] = array(:\$config\['plugins'\] = array(\n 'sieverules',:" /var/www/roundcubemail/htdocs/config/config.inc.php \
|| ee_lib_error "Unable to configure Sieve Roundcube plugin, exit status = " $?
# Configure ManageSieve Plugin
cp -v /var/www/roundcubemail/htdocs/plugins/managesieve/config.inc.php.dist /var/www/roundcubemail/htdocs/plugins/managesieve/config.inc.php &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to configure ManageSieve Roundcube plugin, exit status = " $?
echo "\$config['sieverules_port'] = 4190;" >> /var/www/roundcubemail/htdocs/config/config.inc.php
sed -i "s:\$config\['managesieve_port'\] = null:\$config\['managesieve_port'\] = 4190:" /var/www/roundcubemail/htdocs/plugins/managesieve/config.inc.php && \
sed -i "s:/etc/dovecot/sieve/global:/var/lib/dovecot/sieve/default.sieve:" /var/www/roundcubemail/htdocs/plugins/managesieve/config.inc.php \
|| ee_lib_error "Unable to configure ManageSieve Roundcube plugin, exit status = " $?
}

Loading…
Cancel
Save