Merge lp:~heber013/custom-grafana-integration/checking-proxy-info into lp:custom-grafana-integration

Proposed by Heber Parrucci
Status: Merged
Merged at revision: 28
Proposed branch: lp:~heber013/custom-grafana-integration/checking-proxy-info
Merge into: lp:custom-grafana-integration
Diff against target: 15 lines (+6/-1)
1 file modified
run_script (+6/-1)
To merge this branch: bzr merge lp:~heber013/custom-grafana-integration/checking-proxy-info
Reviewer Review Type Date Requested Status
Sergio Cazzolato Pending
Review via email: mp+329261@code.launchpad.net

Commit message

Check proxy info when installing python packages using pip3

Description of the change

Check proxy info when installing python packages using pip3

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'run_script'
2--- run_script 2017-01-30 21:16:23 +0000
3+++ run_script 2017-08-18 14:56:07 +0000
4@@ -19,5 +19,10 @@
5
6 DIR_PATH=$(dirname $0)
7
8-pip3 install -r $DIR_PATH/requirements.txt
9+if [ -f ~/.proxy_info ]; then
10+ pip3 install -r $DIR_PATH/requirements.txt --proxy $(cat ~/.proxy_info |awk -F'=' ' /'HTTPS_PROXY'/ {print $2} ')
11+else
12+ pip3 install -r $DIR_PATH/requirements.txt
13+fi
14+
15 $DIR_PATH/scripts/run "$@"

Subscribers

People subscribed via source and target branches