Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install missing skin via composer on system initialization #254

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add echo like above for plugins installation. Just to be consistent.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

# 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