-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patrick Wright <patrick@chef.io>
- Loading branch information
Patrick Wright
committed
Sep 14, 2017
1 parent
03460f6
commit a2e58a6
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# All of the download utilities in this script load common proxy env vars. | ||
# If variables are set they will override any existing env vars. | ||
# Otherwise, default proxy env vars will be loaded by the respective | ||
# download utility. | ||
|
||
if test "x$https_proxy" != "x"; then | ||
echo "setting https_proxy: $https_proxy" | ||
export HTTPS_PROXY=$https_proxy | ||
export https_proxy=$https_proxy | ||
fi | ||
|
||
if test "x$http_proxy" != "x"; then | ||
echo "setting http_proxy: $http_proxy" | ||
export HTTP_PROXY=$http_proxy | ||
export http_proxy=$http_proxy | ||
fi | ||
|
||
if test "x$ftp_proxy" != "x"; then | ||
echo "setting ftp_proxy: $ftp_proxy" | ||
export FTP_PROXY=$ftp_proxy | ||
export ftp_proxy=$ftp_proxy | ||
fi | ||
|
||
if test "x$no_proxy" != "x"; then | ||
echo "setting no_proxy: $no_proxy" | ||
export NO_PROXY=$no_proxy | ||
export no_proxy=$no_proxy | ||
fi |