Fix smbclient

This commit is contained in:
erikn69
2025-02-24 11:03:39 -05:00
parent 852a86f205
commit 4170424145
2 changed files with 13 additions and 3 deletions

View File

@@ -851,7 +851,11 @@ ARG INSTALL_SMB=false
RUN if [ ${INSTALL_SMB} = true ]; then \
apt-get install -yqq smbclient libsmbclient-dev coreutils && \
pecl install smbclient && \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
pecl install smbclient; \
else \
pecl install smbclient-1.1.2; \
fi && \
docker-php-ext-enable smbclient \
;fi