Skip to content

Commit b4605ba

Browse files
authored
Merge pull request #341 from JedMeister/bootstap-apt-conf-proxy
revert recent changes to conf/bootstrap_apt - causes issues with recent fab update
2 parents 11cb815 + a866deb commit b4605ba

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

conf/bootstrap_apt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
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:
@@ -109,13 +112,13 @@ fi
109112

110113
if [[ $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
113116
elif [[ $deb_ver -ge 11 ]] || [[ "$distro" == 'ubuntu' ]]; then
114117
sec_repo="$CODENAME-security"
115118
PROXY_PORT=3128
116119
fi
117120

118-
if [[ "${APT_PROXY_OVERRIDE,,}" == "disable" ]]; then
121+
if [[ "${APT_PROXY_OVERRIDE,,}" == "disable" ]] || [[ -n "$NO_PROXY" ]]; then
119122
PROXY_PORT=
120123
elif [[ -n $APT_PROXY_OVERRIDE ]]; then
121124
PROXY_PORT=$APT_PROXY_OVERRIDE

0 commit comments

Comments
 (0)