diff --git a/apache/docker-entrypoint.sh b/apache/docker-entrypoint.sh index 5aaba562a..f348fd75c 100755 --- a/apache/docker-entrypoint.sh +++ b/apache/docker-entrypoint.sh @@ -94,6 +94,20 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then ${ROUNDCUBEMAIL_PLUGINS_SH}; fi + if [ ! -d skins/${ROUNDCUBEMAIL_SKIN} ]; then + # Installing missing skin + composer \ + --working-dir=/usr/src/roundcubemail/ \ + --prefer-dist \ + --prefer-stable \ + --update-no-dev \ + --no-interaction \ + --optimize-autoloader \ + require \ + -- \ + roundcube/${ROUNDCUBEMAIL_SKIN}; + fi + if [ ! -e config/config.inc.php ]; then GENERATED_DES_KEY=`head /dev/urandom | base64 | head -c 24` touch config/config.inc.php diff --git a/fpm-alpine/docker-entrypoint.sh b/fpm-alpine/docker-entrypoint.sh index 5aaba562a..f348fd75c 100755 --- a/fpm-alpine/docker-entrypoint.sh +++ b/fpm-alpine/docker-entrypoint.sh @@ -94,6 +94,20 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then ${ROUNDCUBEMAIL_PLUGINS_SH}; fi + if [ ! -d skins/${ROUNDCUBEMAIL_SKIN} ]; then + # Installing missing skin + composer \ + --working-dir=/usr/src/roundcubemail/ \ + --prefer-dist \ + --prefer-stable \ + --update-no-dev \ + --no-interaction \ + --optimize-autoloader \ + require \ + -- \ + roundcube/${ROUNDCUBEMAIL_SKIN}; + fi + if [ ! -e config/config.inc.php ]; then GENERATED_DES_KEY=`head /dev/urandom | base64 | head -c 24` touch config/config.inc.php diff --git a/fpm/docker-entrypoint.sh b/fpm/docker-entrypoint.sh index 5aaba562a..f348fd75c 100755 --- a/fpm/docker-entrypoint.sh +++ b/fpm/docker-entrypoint.sh @@ -94,6 +94,20 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then ${ROUNDCUBEMAIL_PLUGINS_SH}; fi + if [ ! -d skins/${ROUNDCUBEMAIL_SKIN} ]; then + # Installing missing skin + composer \ + --working-dir=/usr/src/roundcubemail/ \ + --prefer-dist \ + --prefer-stable \ + --update-no-dev \ + --no-interaction \ + --optimize-autoloader \ + require \ + -- \ + roundcube/${ROUNDCUBEMAIL_SKIN}; + fi + if [ ! -e config/config.inc.php ]; then GENERATED_DES_KEY=`head /dev/urandom | base64 | head -c 24` touch config/config.inc.php diff --git a/templates/docker-entrypoint.sh b/templates/docker-entrypoint.sh index 5aaba562a..f348fd75c 100644 --- a/templates/docker-entrypoint.sh +++ b/templates/docker-entrypoint.sh @@ -94,6 +94,20 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then ${ROUNDCUBEMAIL_PLUGINS_SH}; fi + if [ ! -d skins/${ROUNDCUBEMAIL_SKIN} ]; then + # Installing missing skin + composer \ + --working-dir=/usr/src/roundcubemail/ \ + --prefer-dist \ + --prefer-stable \ + --update-no-dev \ + --no-interaction \ + --optimize-autoloader \ + require \ + -- \ + roundcube/${ROUNDCUBEMAIL_SKIN}; + fi + if [ ! -e config/config.inc.php ]; then GENERATED_DES_KEY=`head /dev/urandom | base64 | head -c 24` touch config/config.inc.php