php-fpm: fix php 7 redis

This commit is contained in:
erikn69
2023-10-03 09:19:49 -05:00
committed by GitHub
parent 205cb4e5c9
commit 6974a95c8c

View File

@@ -306,6 +306,8 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
# Install Php Redis Extension
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install -o -f redis-4.3.0; \
elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && { [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ] || [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ] ;}; then \
pecl install -o -f redis-5.3.7; \
else \
pecl install -o -f redis; \
fi \