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 \
|
else \
|
||||||
pecl install imagick; \
|
pecl install imagick; \
|
||||||
fi && \
|
fi && \
|
||||||
docker-php-ext-enable imagick \
|
docker-php-ext-enable imagick; \
|
||||||
|
php -m | grep -q 'imagick' \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
|
@ -1202,7 +1202,8 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
pecl install imagick; \
|
pecl install imagick; \
|
||||||
fi && \
|
fi && \
|
||||||
echo "extension=imagick.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/imagick.ini && \
|
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
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
Loading…
Reference in New Issue