From bdac33284edca6993310433250e7f449133ac288 Mon Sep 17 00:00:00 2001 From: levasseur Date: Mon, 13 Sep 2021 11:30:24 +0200 Subject: [PATCH] added http{,s}_proxy initialization where needed --- init.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.sh b/init.sh index 99b42d9..30b977c 100755 --- a/init.sh +++ b/init.sh @@ -34,7 +34,7 @@ export LC_ALL=C export LANG=C # Version of init -export VERSION="0.99.3" +export VERSION="0.99.4" # Store script's path export MYPATH=$(dirname $0) @@ -105,6 +105,12 @@ load_configuration process_commandline_and_vars +# Declare proxy system vars if needed and if not already declared +if [[ -n $PROXYSRV && -n $PROXYSRVPORT ]]; then + export http_proxy=${http_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"} + export https_proxy=${https_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"} +fi + # Reinit stage file if no resuming if [[ $RESUME != true ]]; then [[ -f $STAGE_FILE ]] && rm -f $STAGE_FILE