Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 6 additions & 4 deletions apache/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
INSTALLDIR=`pwd`
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
if [ "$(ls -A)" ]; then
echo >&2 "WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
( set -x; ls -A; sleep 10 )
if [ -z "${SKIP_CHECK_EMPTY_DOCROOT}" ]; then
if find . -mindepth 1 -maxdepth 1 -print -quit | grep -q .; then
echo >&2 "ERROR: $PWD is not empty; export SKIP_CHECK_EMPTY_DOCROOT=yes to ignore this"
exit 1
fi
fi
echo >&2 "roundcubemail not found in $PWD - copying now..."
tar cf - --one-file-system -C /usr/src/roundcubemail . | tar xf -
echo >&2 "Complete! ROUNDCUBEMAIL has been successfully copied to $INSTALLDIR"
# update Roundcube in docroot
Expand Down
10 changes: 6 additions & 4 deletions fpm-alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
INSTALLDIR=`pwd`
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
if [ "$(ls -A)" ]; then
echo >&2 "WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
( set -x; ls -A; sleep 10 )
if [ -z "${SKIP_CHECK_EMPTY_DOCROOT}" ]; then
if find . -mindepth 1 -maxdepth 1 -print -quit | grep -q .; then
echo >&2 "ERROR: $PWD is not empty; export SKIP_CHECK_EMPTY_DOCROOT=yes to ignore this"
exit 1
fi
fi
echo >&2 "roundcubemail not found in $PWD - copying now..."
tar cf - --one-file-system -C /usr/src/roundcubemail . | tar xf -
echo >&2 "Complete! ROUNDCUBEMAIL has been successfully copied to $INSTALLDIR"
# update Roundcube in docroot
Expand Down
10 changes: 6 additions & 4 deletions fpm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
INSTALLDIR=`pwd`
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
if [ "$(ls -A)" ]; then
echo >&2 "WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
( set -x; ls -A; sleep 10 )
if [ -z "${SKIP_CHECK_EMPTY_DOCROOT}" ]; then
if find . -mindepth 1 -maxdepth 1 -print -quit | grep -q .; then
echo >&2 "ERROR: $PWD is not empty; export SKIP_CHECK_EMPTY_DOCROOT=yes to ignore this"
exit 1
fi
fi
echo >&2 "roundcubemail not found in $PWD - copying now..."
tar cf - --one-file-system -C /usr/src/roundcubemail . | tar xf -
echo >&2 "Complete! ROUNDCUBEMAIL has been successfully copied to $INSTALLDIR"
# update Roundcube in docroot
Expand Down
10 changes: 6 additions & 4 deletions templates/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
INSTALLDIR=`pwd`
# docroot is empty
if ! [ -e index.php -a -e bin/installto.sh ]; then
echo >&2 "roundcubemail not found in $PWD - copying now..."
if [ "$(ls -A)" ]; then
echo >&2 "WARNING: $PWD is not empty - press Ctrl+C now if this is an error!"
( set -x; ls -A; sleep 10 )
if [ -z "${SKIP_CHECK_EMPTY_DOCROOT}" ]; then
if find . -mindepth 1 -maxdepth 1 -print -quit | grep -q .; then
echo >&2 "ERROR: $PWD is not empty; export SKIP_CHECK_EMPTY_DOCROOT=yes to ignore this"
exit 1
fi
fi
echo >&2 "roundcubemail not found in $PWD - copying now..."
tar cf - --one-file-system -C /usr/src/roundcubemail . | tar xf -
echo >&2 "Complete! ROUNDCUBEMAIL has been successfully copied to $INSTALLDIR"
# update Roundcube in docroot
Expand Down
Loading