fix mongo install in php fpm and workspace

This commit is contained in:
bertalanV
2020-10-22 17:02:42 +02:00
parent 89c9cfe099
commit 36764906d7
2 changed files with 9 additions and 7 deletions

View File

@ -312,9 +312,10 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install mongo && \
docker-php-ext-enable mongo \
;fi && \
pecl install mongodb && \
docker-php-ext-enable mongodb \
;else \
pecl install mongodb && \
docker-php-ext-enable mongodb \
;fi \
;fi
###########################################################################