From 633105e89cd6586cc42af343e0d22efc0c83cf5c Mon Sep 17 00:00:00 2001 From: bertalanV Date: Fri, 23 Oct 2020 14:29:13 +0200 Subject: [PATCH] fix inotify for php 5.6 --- workspace/Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 9d514654..88cddf3f 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -574,9 +574,15 @@ RUN if [ ${INSTALL_LIBPNG} = true ]; then \ ARG INSTALL_INOTIFY=false RUN if [ ${INSTALL_INOTIFY} = true ]; then \ - 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 \ + if [ $(php -r "echo PHP_MAJOR_VERSION;") != "5" ]; then \ + pecl -q install inotify-0.1.6 && \ + 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 ###########################################################################