Update docker-entrypoint.sh

This commit is contained in:
Adrien le Maire 2021-04-30 15:13:22 +00:00
parent 3a3fdc6e55
commit 93bb6732f3

View File

@ -70,6 +70,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
: "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}"
: "${ROUNDCUBEMAIL_SKIN:=larry}"
: "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}"
: "${ROUNDCUBEMAIL_IMAP_CACHE_TTL:7d}"
: "${ROUNDCUBEMAIL_MESSAGES_CACHE_TTL:3m}"
: "${ROUNDCUBEMAIL_MESSAGES_CACHE_TRESHOLD:3mb}"
if [ ! -e config/config.inc.php ]; then
ROUNDCUBEMAIL_DES_KEY=`head /dev/urandom | base64 | head -c 24`
@ -100,6 +104,11 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
\$config['temp_dir'] = '${ROUNDCUBEMAIL_TEMP_DIR}';
\$config['skin'] = '${ROUNDCUBEMAIL_SKIN}';
\$config['plugins'] = array_filter(array_unique(array_merge(\$config['plugins'], ['${ROUNDCUBEMAIL_PLUGINS_PHP}'])));
\$config['imap_cache'] = 'db';
\$config['imap_cache_ttl'] = '${ROUNDCUBEMAIL_IMAP_CACHE_TTL}';
\$config['messages_cache'] = 'db';
\$config['messages_cache_threshold'] = '${ROUNDCUBEMAIL_MESSAGES_CACHE_THRESHOLD}';
\$config['messages_cache_ttl'] = '${ROUNDCUBEMAIL_MESSAGES_CACHE_TTL}';
" > config/config.docker.inc.php
if [ -e /run/secrets/roundcube_des_key ]; then