Handle tls-ca-bundle.pem if it exists
This commit is contained in:
parent
5c9dc85e01
commit
607e2b2d40
1 changed files with 6 additions and 1 deletions
|
@ -32,7 +32,12 @@ echo "Install path: $install_path"
|
|||
echo "Bin path: $bin_path"
|
||||
|
||||
pipinstall () {
|
||||
./bin/pip install --upgrade $1
|
||||
if [ -r /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ]; then
|
||||
cafile="--cert /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"
|
||||
else
|
||||
cafile=""
|
||||
fi
|
||||
./bin/pip $cafile install --upgrade $1
|
||||
}
|
||||
|
||||
create_link () {
|
||||
|
|
Loading…
Reference in a new issue