From: Thomas Bruederli Date: Sat, 9 Nov 2019 21:36:09 +0000 (+0100) Subject: Fix bash syntax in fpm entry points X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=1cea836e26855f820648a2ae20a7c56d2d546eb1;p=roundcube-roundcubemail-docker.git Fix bash syntax in fpm entry points Apply commit 64f878afab to fpm variants --- diff --git a/fpm-alpine/docker-entrypoint.sh b/fpm-alpine/docker-entrypoint.sh index 76d1cc7..a8f7cbd 100755 --- a/fpm-alpine/docker-entrypoint.sh +++ b/fpm-alpine/docker-entrypoint.sh @@ -14,10 +14,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then echo >&2 "Complete! ROUNDCUBEMAIL has been successfully copied to $PWD" fi - if [ -f /run/secrets/roundcube_db_user]; then + if [ -f /run/secrets/roundcube_db_user ]; then ROUNDCUBEMAIL_DB_USER=`cat /run/secrets/roundcube_db_user` fi - if [ -f /run/secrets/roundcube_db_password]; then + if [ -f /run/secrets/roundcube_db_password ]; then ROUNDCUBEMAIL_DB_PASSWORD=`cat /run/secrets/roundcube_db_password` fi diff --git a/fpm/docker-entrypoint.sh b/fpm/docker-entrypoint.sh index 76d1cc7..a8f7cbd 100755 --- a/fpm/docker-entrypoint.sh +++ b/fpm/docker-entrypoint.sh @@ -14,10 +14,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then echo >&2 "Complete! ROUNDCUBEMAIL has been successfully copied to $PWD" fi - if [ -f /run/secrets/roundcube_db_user]; then + if [ -f /run/secrets/roundcube_db_user ]; then ROUNDCUBEMAIL_DB_USER=`cat /run/secrets/roundcube_db_user` fi - if [ -f /run/secrets/roundcube_db_password]; then + if [ -f /run/secrets/roundcube_db_password ]; then ROUNDCUBEMAIL_DB_PASSWORD=`cat /run/secrets/roundcube_db_password` fi