From: tomuta Date: Fri, 15 Nov 2019 20:51:08 +0000 (-0700) Subject: Add environment variable ROUNDCUBEMAIL_SKIN to configure default theme X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=1d2597c7f01ee914c893e1b2ffdcf904926d3ad1;p=roundcube-roundcubemail-docker.git Add environment variable ROUNDCUBEMAIL_SKIN to configure default theme Fixes issue #68 --- diff --git a/README.md b/README.md index 7a2dc46..e7c79be 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ The following env variables can be set to configure your Roundcube Docker instan `ROUNDCUBEMAIL_PLUGINS` - List of built-in plugins to activate. Defaults to `archive,zipdownload` +`ROUNDCUBEMAIL_SKIN` - Configures the default theme. Defaults to `larry` + `ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE` - File upload size limit; defaults to `5M` By default, the image will use a local SQLite database for storing user account metadata. diff --git a/apache/docker-entrypoint.sh b/apache/docker-entrypoint.sh index fa25ac0..6fd0a2a 100755 --- a/apache/docker-entrypoint.sh +++ b/apache/docker-entrypoint.sh @@ -61,6 +61,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then : "${ROUNDCUBEMAIL_SMTP_SERVER:=localhost}" : "${ROUNDCUBEMAIL_SMTP_PORT:=587}" : "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}" + : "${ROUNDCUBEMAIL_SKIN:=larry}" : "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}" if [ ! -e config/config.inc.php ]; then @@ -83,7 +84,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then \$config['plugins'] = ['${ROUNDCUBEMAIL_PLUGINS_PHP}']; \$config['zipdownload_selection'] = true; \$config['log_driver'] = 'stdout'; - \$config['skin'] = 'larry'; + \$config['skin'] = '${ROUNDCUBEMAIL_SKIN}'; " > config/config.inc.php for fn in `ls /var/roundcube/config/*.php 2>/dev/null || true`; do diff --git a/fpm-alpine/docker-entrypoint.sh b/fpm-alpine/docker-entrypoint.sh index fa25ac0..6fd0a2a 100755 --- a/fpm-alpine/docker-entrypoint.sh +++ b/fpm-alpine/docker-entrypoint.sh @@ -61,6 +61,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then : "${ROUNDCUBEMAIL_SMTP_SERVER:=localhost}" : "${ROUNDCUBEMAIL_SMTP_PORT:=587}" : "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}" + : "${ROUNDCUBEMAIL_SKIN:=larry}" : "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}" if [ ! -e config/config.inc.php ]; then @@ -83,7 +84,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then \$config['plugins'] = ['${ROUNDCUBEMAIL_PLUGINS_PHP}']; \$config['zipdownload_selection'] = true; \$config['log_driver'] = 'stdout'; - \$config['skin'] = 'larry'; + \$config['skin'] = '${ROUNDCUBEMAIL_SKIN}'; " > config/config.inc.php for fn in `ls /var/roundcube/config/*.php 2>/dev/null || true`; do diff --git a/fpm/docker-entrypoint.sh b/fpm/docker-entrypoint.sh index fa25ac0..6fd0a2a 100755 --- a/fpm/docker-entrypoint.sh +++ b/fpm/docker-entrypoint.sh @@ -61,6 +61,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then : "${ROUNDCUBEMAIL_SMTP_SERVER:=localhost}" : "${ROUNDCUBEMAIL_SMTP_PORT:=587}" : "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}" + : "${ROUNDCUBEMAIL_SKIN:=larry}" : "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}" if [ ! -e config/config.inc.php ]; then @@ -83,7 +84,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then \$config['plugins'] = ['${ROUNDCUBEMAIL_PLUGINS_PHP}']; \$config['zipdownload_selection'] = true; \$config['log_driver'] = 'stdout'; - \$config['skin'] = 'larry'; + \$config['skin'] = '${ROUNDCUBEMAIL_SKIN}'; " > config/config.inc.php for fn in `ls /var/roundcube/config/*.php 2>/dev/null || true`; do