Fix event module
This commit is contained in:
parent
1198badfe4
commit
ea1a91e9e1
|
@ -1755,7 +1755,9 @@ RUN set -eux; \
|
|||
make &&\
|
||||
make install &&\
|
||||
rm /tmp/libevent.tar.gz &&\
|
||||
echo "extension=sockets.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/sockets.ini && \
|
||||
if [ ! -f /etc/php/${LARADOCK_PHP_VERSION}/mods-available/sockets.ini ]; then\
|
||||
echo "extension=sockets.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/sockets.ini; \
|
||||
fi &&\
|
||||
ln -sf /etc/php/${LARADOCK_PHP_VERSION}/mods-available/sockets.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-sockets.ini && \
|
||||
curl -L -o /tmp/event.tar.gz http://pecl.php.net/get/event-3.0.6.tgz &&\
|
||||
mkdir -p /tmp/event-php &&\
|
||||
|
@ -1767,7 +1769,7 @@ RUN set -eux; \
|
|||
make install &&\
|
||||
rm /tmp/event.tar.gz &&\
|
||||
echo "extension=event.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/event.ini && \
|
||||
ln -sf /etc/php/${LARADOCK_PHP_VERSION}/mods-available/event.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-event.ini && \
|
||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/event.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-event.ini && \
|
||||
php -m | grep -q 'event' \
|
||||
;fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue