summaryrefslogtreecommitdiffstats
path: root/kud
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-05-06 15:27:42 +0300
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-05-06 15:27:42 +0300
commita93d2efea10fcf49dad7743f4809ec7face0611a (patch)
tree16b6acb4e7e9384ca4ba378aa291d4985fc63773 /kud
parenta2ae972e814f80184033ee75e9715d1d76323410 (diff)
Fix pip install/upgrade logic
installer.sh has reverse logic for install/upgrade pip after checking if pip is installed. Issue-ID: MULTICLOUD-607 Change-Id: Ifc512e80d8da7a37acc771f40e9edd7596388fcb Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Diffstat (limited to 'kud')
-rwxr-xr-xkud/hosting_providers/vagrant/installer.sh4
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
}