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