add extension imagick installed check
This commit is contained in:
parent
ecdfa174dc
commit
ac08bc4364
|
@ -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