fix(YAML extension): avoid typo

This commit is contained in:
Pavel Savushkin 2021-03-21 19:21:34 +02:00
parent ad2b94fa60
commit 5686c698e7
No known key found for this signature in database
GPG Key ID: BD2EDA3E125300DD
1 changed files with 3 additions and 3 deletions

View File

@ -838,15 +838,15 @@ USER root
ARG INSTALL_YAML=false
RUN if [ ${INSTALL_YAML} = true ]; then \
apt-get install libyaml-dev -y ; \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
apt-get install -yqq libyaml-dev \
&& if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
echo '' | pecl install -a yaml-1.3.2; \
elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
echo '' | pecl install yaml-2.0.4; \
else \
echo '' | pecl install yaml; \
fi \
&& docker-php-ext-enable yaml; \
&& docker-php-ext-enable yaml \
;fi
###########################################################################