From 6e3dee8b3b137e35399fe4f874e012f44c325f9b Mon Sep 17 00:00:00 2001 From: Francesco Montanari Date: Sun, 1 Dec 2019 23:10:04 +0200 Subject: [PATCH] Upgrade RoundCube to 1.4.1 and set the default skin to elastic (#1673) * Upgrade RoundCube to 1.4.0 and set the default skin to elastic * Install php-ldap extension * Remove smtp parameters that are now the default --- CHANGELOG.md | 4 ++++ setup/webmail.sh | 18 +++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e59bda9..c0c75963 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,14 @@ CHANGELOG Under Development ----------------- +WebMail: +* Set the default Roundcube skin to the new "Elastic" theme. + Software updates: * Upgraded Nextcloud from 15.0.8 to 16.0.5 (with Contacts from 3.1.1 to 3.1.4 and Calendar from 1.6.5 to 1.7.1) * Upgraded Z-Push to 2.5.1. +* Upgraded Roundcube from 1.3.10 to 1.4.1. Control panel: diff --git a/setup/webmail.sh b/setup/webmail.sh index 6cbe55f9..f44ea047 100755 --- a/setup/webmail.sh +++ b/setup/webmail.sh @@ -22,14 +22,14 @@ source /etc/mailinabox.conf # load global vars echo "Installing Roundcube (webmail)..." apt_install \ dbconfig-common \ - php-cli php-sqlite3 php-intl php-json php-common php-curl \ + php-cli php-sqlite3 php-intl php-json php-common php-curl php-ldap \ php-gd php-pspell tinymce libjs-jquery libjs-jquery-mousewheel libmagic1 php-mbstring # Install Roundcube from source if it is not already present or if it is out of date. # Combine the Roundcube version number with the commit hash of plugins to track # whether we have the latest version of everything. -VERSION=1.3.10 -HASH=431625fc737e301f9b7e502cccc61e50a24786b8 +VERSION=1.4.1 +HASH=f4ecc63185b8f7b4ce5bccdc9fc689571e82c489 PERSISTENT_LOGIN_VERSION=dc5ca3d3f4415cc41edb2fde533c8a8628a94c76 HTML5_NOTIFIER_VERSION=4b370e3cd60dabd2f428a26f45b677ad1b7118d5 CARDDAV_VERSION=3.0.3 @@ -51,6 +51,13 @@ elif [[ "$UPDATE_KEY" != `cat /usr/local/lib/roundcubemail/version` ]]; then needs_update=1 #NODOC fi if [ $needs_update == 1 ]; then + # if upgrading from 1.3.x, clear the temp_dir + if [ -f /usr/local/lib/roundcubemail/version ]; then + if [ "$(cat /usr/local/lib/roundcubemail/version | cut -c1-3)" == '1.3' ]; then + find /var/tmp/roundcubemail/ -type f ! -name 'RCMTEMP*' -delete + fi + fi + # install roundcube wget_verify \ https://github.com/roundcube/roundcubemail/releases/download/$VERSION/roundcubemail-$VERSION-complete.tar.gz \ @@ -110,9 +117,6 @@ cat > $RCM_CONFIG < array( 'verify_peer' => false, @@ -123,7 +127,7 @@ cat > $RCM_CONFIG <