diff options
author | Victor Morales <victor.morales@intel.com> | 2019-05-07 21:49:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-07 21:49:47 +0000 |
commit | 1182f00b521bf72c13ef87905898e71b5de6b266 (patch) | |
tree | 94a6df5f8525d43441c6c61365e348584d0a21ba /kud | |
parent | 381e61199653bbfa7da9c5349acad87a944fc8b8 (diff) | |
parent | a93d2efea10fcf49dad7743f4809ec7face0611a (diff) |
Merge "Fix pip install/upgrade logic"
Diffstat (limited to 'kud')
-rwxr-xr-x | kud/hosting_providers/vagrant/installer.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh index dd27e05f..60e05ffb 100755 --- a/kud/hosting_providers/vagrant/installer.sh +++ b/kud/hosting_providers/vagrant/installer.sh @@ -31,10 +31,10 @@ function _install_go { # _install_pip() - Install Python Package Manager function _install_pip { if $(pip --version &>/dev/null); then + sudo -E pip install --upgrade pip + else sudo apt-get install -y python-dev curl -sL https://bootstrap.pypa.io/get-pip.py | sudo python - else - sudo -E pip install --upgrade pip fi } |