From 14c252f131729c28a60e67aa055cd4635a267384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bores?= Date: Fri, 7 Jun 2024 13:01:20 +0200 Subject: [PATCH] Install missing skin via composer. Otherwise you will get an error (also see #243) --- apache/docker-entrypoint.sh | 14 ++++++++++++++ fpm-alpine/docker-entrypoint.sh | 14 ++++++++++++++ fpm/docker-entrypoint.sh | 14 ++++++++++++++ templates/docker-entrypoint.sh | 14 ++++++++++++++ 4 files changed, 56 insertions(+) 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