fix:Add php xlswriter extension
This commit is contained in:
parent
084fcaaf8b
commit
c906356f46
|
@ -497,11 +497,11 @@ RUN set -eux; \
|
|||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||
# Install Php xlswriter Extension \
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
||||
pecl install xlswriter; \
|
||||
docker-php-ext-enable xlswriter; \
|
||||
pecl install xlswriter &&\
|
||||
docker-php-ext-enable xlswriter &&\
|
||||
php -m | grep -q 'xlswriter'; \
|
||||
else \
|
||||
echo "PHP Extension for xlswriter is not supported for PHP 5.0"\
|
||||
echo "PHP Extension for xlswriter is not supported for PHP 5.0";\
|
||||
fi \
|
||||
;fi
|
||||
|
||||
|
|
|
@ -377,8 +377,8 @@ RUN set -eux; \
|
|||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||
# Install Php xlswriter Extension \
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
||||
pecl install xlswriter; \
|
||||
docker-php-ext-enable xlswriter; \
|
||||
pecl install xlswriter && \
|
||||
docker-php-ext-enable xlswriter && \
|
||||
php -m | grep -q 'xlswriter'; \
|
||||
else \
|
||||
echo "PHP Extension for xlswriter is not supported for PHP 5.0"; \
|
||||
|
|
|
@ -576,8 +576,8 @@ RUN set -eux; \
|
|||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||
# Install Php xlswriter Extension
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
||||
echo '' | pecl -q install xlswriter; \
|
||||
echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini; \
|
||||
echo '' | pecl -q install xlswriter && \
|
||||
echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini && \
|
||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xlswriter.ini; \
|
||||
php -m | grep -q 'xlswriter'; \
|
||||
else \
|
||||
|
|
Loading…
Reference in New Issue