add extension imagick installed check

This commit is contained in:
Shao Yu-Lung (Allen) 2021-04-04 20:46:57 +08:00
parent ecdfa174dc
commit ac08bc4364
2 changed files with 4 additions and 2 deletions

View File

@ -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
###########################################################################

View File

@ -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
###########################################################################