diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 0980f232..eb81748f 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 39c4429c..7414459d 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 3c09483b..36364021 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; \