corriger la prise en compte du proxy

This commit is contained in:
Jephté Clain 2025-03-23 12:09:35 +04:00
parent 0e9c4e971d
commit 5beb5e6621
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,12 @@ source "$RUNPHP" || exit 1
source "$PROJDIR/$VENDORDIR/nulib/php/load.sh" || exit 1
require: template
# recenser les valeur de proxy
declare -A PROXY_VARS
for var in {HTTPS,ALL,NO}_PROXY {http,https,all,no}_proxy; do
is_defined "$var" && PROXY_VARS[${var,,}]="${!var}"
done
BUILD_ARGS=(
DIST NDIST
REGISTRY

View File

@ -311,7 +311,6 @@ function host_init_env() {
## Charger la configuration
# Recenser les valeur de proxy
declare -A PROXY_VARS
for var in {HTTPS,ALL,NO}_PROXY {http,https,all,no}_proxy; do
is_defined "$var" && PROXY_VARS[${var,,}]="${!var}"
done
@ -633,6 +632,7 @@ function container_exec() {
if [ "$RUNPHP_MODE" != docker ]; then
# Lancement depuis l'extérieur du container
declare -A PROXY_VARS
host_parse_args "$@"
host_init_env