Merge pull request #3365 from samejack/master

Fix php7.x install gearman issue
This commit is contained in:
Shao Yu-Lung (Allen) 2023-03-30 07:54:49 +08:00 committed by GitHub
commit 03159cf2b9
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 \
add-apt-repository -y ppa:ondrej/pkg-gearman && \
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
###########################################################################