Fix php7.x install gearman issue

This commit is contained in:
SJ Chou 2023-03-17 11:29:06 +08:00 committed by GitHub
parent 6c8cb6dd85
commit 185fa761ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -526,7 +526,11 @@ ARG INSTALL_GEARMAN=false
RUN if [ ${INSTALL_GEARMAN} = true ]; then \ RUN if [ ${INSTALL_GEARMAN} = true ]; then \
add-apt-repository -y ppa:ondrej/pkg-gearman && \ add-apt-repository -y ppa:ondrej/pkg-gearman && \
apt-get update && \ apt-get update && \
apt-get -yqq install php-gearman \ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
apt-get install php${LARADOCK_PHP_VERSION}-gearman -y \
; else \
apt-get install php-gearman -y \
;fi \
;fi ;fi
########################################################################### ###########################################################################