Handle tls-ca-bundle.pem if it exists

This commit is contained in:
Anthony Rose 2022-07-18 10:45:50 +01:00
parent 5c9dc85e01
commit 607e2b2d40

View file

@ -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 () {