diff --git a/runphp/build b/runphp/build index 25d53fa..3f7c7b6 100755 --- a/runphp/build +++ b/runphp/build @@ -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 diff --git a/runphp/runphp b/runphp/runphp index ea30726..e24aba5 100755 --- a/runphp/runphp +++ b/runphp/runphp @@ -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