mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-11-30 04:29:15 +01:00
automatically set proxy for pear/pecl (#692)
* automatically set proxy for pear/pecl * only set once * fix shell code style * fix possibly unset vars
This commit is contained in:
parent
93c7e386e8
commit
5c1e8a1dd8
@ -3712,6 +3712,13 @@ configureInstaller() {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if test $USE_PICKLE -eq 0; then
|
if test $USE_PICKLE -eq 0; then
|
||||||
|
if test -z "$(pear config-get http_proxy)"; then
|
||||||
|
if test -n "${http_proxy:-}"; then
|
||||||
|
pear config-set http_proxy "$http_proxy" || true
|
||||||
|
elif test -n "${HTTP_PROXY:-}"; then
|
||||||
|
pear config-set http_proxy "$HTTP_PROXY" || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
pecl channel-update pecl.php.net || true
|
pecl channel-update pecl.php.net || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user