From: Shannon Wynter Date: Sun, 27 Oct 2024 20:54:03 +0000 (+1000) Subject: Fix syntax error in docker-entrypoint.sh (#268) X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=df2440c5f93d7ffd0d9c410ed5bda917ff3539be;p=roundcube-roundcubemail-docker.git Fix syntax error in docker-entrypoint.sh (#268) /docker-entrypoint.sh: line 148: [: missing `]' --- diff --git a/apache/docker-entrypoint.sh b/apache/docker-entrypoint.sh index 587ca27..a797d86 100755 --- a/apache/docker-entrypoint.sh +++ b/apache/docker-entrypoint.sh @@ -145,7 +145,7 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then echo "\$config['oauth_client_secret'] = '${ROUNDCUBEMAIL_OAUTH_CLIENT_SECRET}';" >> config/config.docker.inc.php fi - if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}"]; then + if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}" ]; then echo "\$config['spellcheck_engine'] = 'googie';" >> config/config.docker.inc.php echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php fi diff --git a/fpm-alpine/docker-entrypoint.sh b/fpm-alpine/docker-entrypoint.sh index 587ca27..a797d86 100755 --- a/fpm-alpine/docker-entrypoint.sh +++ b/fpm-alpine/docker-entrypoint.sh @@ -145,7 +145,7 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then echo "\$config['oauth_client_secret'] = '${ROUNDCUBEMAIL_OAUTH_CLIENT_SECRET}';" >> config/config.docker.inc.php fi - if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}"]; then + if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}" ]; then echo "\$config['spellcheck_engine'] = 'googie';" >> config/config.docker.inc.php echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php fi diff --git a/fpm/docker-entrypoint.sh b/fpm/docker-entrypoint.sh index 587ca27..a797d86 100755 --- a/fpm/docker-entrypoint.sh +++ b/fpm/docker-entrypoint.sh @@ -145,7 +145,7 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then echo "\$config['oauth_client_secret'] = '${ROUNDCUBEMAIL_OAUTH_CLIENT_SECRET}';" >> config/config.docker.inc.php fi - if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}"]; then + if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}" ]; then echo "\$config['spellcheck_engine'] = 'googie';" >> config/config.docker.inc.php echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php fi diff --git a/templates/docker-entrypoint.sh b/templates/docker-entrypoint.sh index 587ca27..a797d86 100644 --- a/templates/docker-entrypoint.sh +++ b/templates/docker-entrypoint.sh @@ -145,7 +145,7 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then echo "\$config['oauth_client_secret'] = '${ROUNDCUBEMAIL_OAUTH_CLIENT_SECRET}';" >> config/config.docker.inc.php fi - if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}"]; then + if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}" ]; then echo "\$config['spellcheck_engine'] = 'googie';" >> config/config.docker.inc.php echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php fi