File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626# - if not the same as guest, apply relevant transition changes
2727# - NO_TURNKEY_APT_REPO <optional>:
2828# - disable TurnKey apt repos - useful during early transition
29+ # - NO_PROXY <optional>:
30+ # - same as APT_PROXY_OVERRIDE=disable (will override APT_PROXY_OVERRIDE
31+ # if both set to different values)
2932
3033# Note, to install packages from backports:
3134# - set 'BACKPORTS=y'; and either:
109112
110113if [[ $deb_ver -le 10 ]] && [[ " $distro " == ' debian' ]]; then
111114 sec_repo=" $CODENAME /updates"
112- PROXY_PORT=" $( echo " $FAB_HTTPS_PROXY " | sed -En ' s/.*:([0-9]+).*/\1/p ' ) "
115+ PROXY_PORT=8124
113116elif [[ $deb_ver -ge 11 ]] || [[ " $distro " == ' ubuntu' ]]; then
114117 sec_repo=" $CODENAME -security"
115118 PROXY_PORT=3128
116119fi
117120
118- if [[ " ${APT_PROXY_OVERRIDE,,} " == " disable" ]]; then
121+ if [[ " ${APT_PROXY_OVERRIDE,,} " == " disable" ]] || [[ -n " $NO_PROXY " ]] ; then
119122 PROXY_PORT=
120123elif [[ -n $APT_PROXY_OVERRIDE ]]; then
121124 PROXY_PORT=$APT_PROXY_OVERRIDE
You can’t perform that action at this time.
0 commit comments