Skip to content

Commit

Permalink
Install missing skin via composer. Otherwise you will get an error (a…
Browse files Browse the repository at this point in the history
…lso see roundcube#243)
  • Loading branch information
Björn Bores committed Jun 7, 2024
1 parent 286bea3 commit 14c252f
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apache/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions fpm-alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions fpm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions templates/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14c252f

Please sign in to comment.