fix inotify for php 5.6
This commit is contained in:
parent
36764906d7
commit
633105e89c
@ -574,9 +574,15 @@ RUN if [ ${INSTALL_LIBPNG} = true ]; then \
|
|||||||
ARG INSTALL_INOTIFY=false
|
ARG INSTALL_INOTIFY=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_INOTIFY} = true ]; then \
|
RUN if [ ${INSTALL_INOTIFY} = true ]; then \
|
||||||
pecl -q install inotify && \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \
|
||||||
echo "extension=inotify.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini && \
|
pecl -q install inotify-0.1.6 && \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
|
echo "extension=inotify.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini && \
|
||||||
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
|
||||||
|
else \
|
||||||
|
pecl -q install inotify && \
|
||||||
|
echo "extension=inotify.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini && \
|
||||||
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini \
|
||||||
|
;fi \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user