Skip to content

Commit

Permalink
Merge pull request GNS3#117 from Sloanstar/patch-2
Browse files Browse the repository at this point in the history
Pass proxy variable to pip
  • Loading branch information
grossmj committed Mar 20, 2019
2 parents 2e8d6c9 + e9a3cd6 commit e2da50a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/update_2.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ TAG=`git tag -l 'v2.1*' | grep -v '[abr]' | sort -V | tail -n 1`

git checkout $TAG

sudo pip3 install -U -r requirements.txt
if [! -z "$HTTP_PROXY" ]
then
sudo pip3 install -U -r requirements.txt
else
sudo pip3 --proxy $HTTP_PROXY install -U -r requirements.txt
fi

sudo python3 setup.py install

echo "Reboot in 5s"
Expand Down

0 comments on commit e2da50a

Please sign in to comment.