php-fpm: fix php 7 redis
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user