Merge pull request #2930 from laradock/extension-imagick-install-check
add extension imagick installed check
This commit is contained in:
commit
318e46cdbd
|
@ -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
|
||||
|
||||
###########################################################################
|
||||
|
|
|
@ -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
|
||||
|
||||
###########################################################################
|
||||
|
|
Loading…
Reference in New Issue