Add environment variable ROUNDCUBEMAIL_SKIN to configure default theme
authortomuta <redacted>
Fri, 15 Nov 2019 20:51:08 +0000 (13:51 -0700)
committertomuta <redacted>
Sat, 16 Nov 2019 02:15:22 +0000 (19:15 -0700)
Fixes issue #68

README.md
apache/docker-entrypoint.sh
fpm-alpine/docker-entrypoint.sh
fpm/docker-entrypoint.sh

index 7a2dc469cde69ed56e83e607c446abd1de39d7a1..e7c79be8afe915c415eac356c02b015d69eb79ed 100644 (file)
--- 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.
index fa25ac09ea66af1bc4665602f0c550ec394de346..6fd0a2a148a5a46243cac7d2188edea91ee474b5 100755 (executable)
@@ -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
index fa25ac09ea66af1bc4665602f0c550ec394de346..6fd0a2a148a5a46243cac7d2188edea91ee474b5 100755 (executable)
@@ -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
index fa25ac09ea66af1bc4665602f0c550ec394de346..6fd0a2a148a5a46243cac7d2188edea91ee474b5 100755 (executable)
@@ -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
git clone https://git.99rst.org/PROJECT