Merge pull request #2509 from laradock/fix-php2-ext

fix php7.4 ssh2 extension.
This commit is contained in:
Shao Yu-Lung (Allen) 2020-02-18 15:38:59 +08:00 committed by GitHub
commit 127d48655c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ RUN if [ ${INSTALL_SSH2} = true ]; then \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install -a ssh2-0.13; \ pecl install -a ssh2-0.13; \
else \ else \
pecl install -a ssh2-1.1.2; \ pecl install -a ssh2-1.2; \
fi && \ fi && \
docker-php-ext-enable ssh2 \ docker-php-ext-enable ssh2 \
;fi ;fi