diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 0980f23..eb81748 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -492,7 +492,7 @@ ARG INSTALL_XLSWRITER=false RUN set -eux; \ if [ ${INSTALL_XLSWRITER} = true ]; then \ # Install Php xlswriter Extension \ - if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \ + if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \ pecl install xlswriter &&\ docker-php-ext-enable xlswriter &&\ php -m | grep -q 'xlswriter'; \ diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index 39c4429..7414459 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -372,7 +372,7 @@ ARG INSTALL_XLSWRITER=false RUN set -eux; \ if [ ${INSTALL_XLSWRITER} = true ]; then \ # Install Php xlswriter Extension \ - if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \ + if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \ pecl install xlswriter && \ docker-php-ext-enable xlswriter && \ php -m | grep -q 'xlswriter'; \ diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 3c09483..3636402 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -567,7 +567,7 @@ ARG INSTALL_XLSWRITER=false RUN set -eux; \ if [ ${INSTALL_XLSWRITER} = true ]; then \ # Install Php xlswriter Extension - if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \ + if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \ echo '' | pecl -q install xlswriter && \ echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini && \ ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xlswriter.ini; \