From 6507383d94d3d457823dcf75bbfeba1fc232efec Mon Sep 17 00:00:00 2001 From: cytopia Date: Mon, 21 May 2018 09:39:18 +0200 Subject: [PATCH] Use curl to download ionCube --- build/ansible/group_vars/all.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/ansible/group_vars/all.yml b/build/ansible/group_vars/all.yml index ca0d9d11..353501b8 100644 --- a/build/ansible/group_vars/all.yml +++ b/build/ansible/group_vars/all.yml @@ -674,12 +674,14 @@ extensions_available: command: | EXTENSION_DIR="$( php -i | grep ^extension_dir | awk -F '=>' '{print $2}' | xargs )" \ && if [ ! -d "${EXTENSION_DIR}" ]; then mkdir -p "${EXTENSION_DIR}"; fi \ - && wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \ + && curl https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -L -o ioncube.tar.gz \ && tar xvfz ioncube_loaders_lin_x86-64.tar.gz \ && cd ioncube \ && cp "ioncube_loader_lin_{{ php_version }}.so" "${EXTENSION_DIR}/ioncube.so" \ + && cd ../ \ + && rm -rf ioncube \ + && rm -rf ioncube.tar.gz \ && echo "zend_extension=${EXTENSION_DIR}/ioncube.so" > /usr/local/etc/php/conf.d/docker-php-ext-ioncube.ini \ - build_dep: [wget] json: 7.0: type: builtin