From ac08bc436441d61def0b4186b3ae6555fa3ed01a Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Sun, 4 Apr 2021 20:46:57 +0800 Subject: [PATCH] add extension imagick installed check --- php-fpm/Dockerfile | 3 ++- workspace/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 4642024..4c090be 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -772,7 +772,8 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ else \ pecl install imagick; \ fi && \ - docker-php-ext-enable imagick \ + docker-php-ext-enable imagick; \ + php -m | grep -q 'imagick' \ ;fi ########################################################################### diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 85fd25d..f5b2048 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -1202,7 +1202,8 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ pecl install imagick; \ fi && \ echo "extension=imagick.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/imagick.ini && \ - ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/imagick.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-imagick.ini \ + ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/imagick.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-imagick.ini && \ + php -m | grep -q 'imagick' \ ;fi ###########################################################################