fix(YAML extension): avoid typo
This commit is contained in:
parent
ad2b94fa60
commit
5686c698e7
|
@ -838,15 +838,15 @@ USER root
|
||||||
ARG INSTALL_YAML=false
|
ARG INSTALL_YAML=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_YAML} = true ]; then \
|
RUN if [ ${INSTALL_YAML} = true ]; then \
|
||||||
apt-get install libyaml-dev -y ; \
|
apt-get install -yqq libyaml-dev \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
&& if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
echo '' | pecl install -a yaml-1.3.2; \
|
echo '' | pecl install -a yaml-1.3.2; \
|
||||||
elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
|
elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
|
||||||
echo '' | pecl install yaml-2.0.4; \
|
echo '' | pecl install yaml-2.0.4; \
|
||||||
else \
|
else \
|
||||||
echo '' | pecl install yaml; \
|
echo '' | pecl install yaml; \
|
||||||
fi \
|
fi \
|
||||||
&& docker-php-ext-enable yaml; \
|
&& docker-php-ext-enable yaml \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
Loading…
Reference in New Issue