From: Samuli Silvius Date: Mon, 6 May 2019 12:27:42 +0000 (+0300) Subject: Fix pip install/upgrade logic X-Git-Tag: 0.4.0~26^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=a93d2efea10fcf49dad7743f4809ec7face0611a;p=multicloud%2Fk8s.git 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 --- 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 }