tools/ci/deploy_datalad-rootca
raw| 1 | #!/bin/bash |
| 2 | # deploy the root CA that comes with the sources in order to be able to test |
| 3 | # against the internal HTTPS server without fiddling |
| 4 | |
| 5 | if hash update-ca-certificates; then |
| 6 | sudo mkdir -p /usr/local/share/ca-certificates/ |
| 7 | sudo cp datalad/tests/ca/ca-root.pem /usr/local/share/ca-certificates/datalad-root.crt |
| 8 | sudo update-ca-certificates |
| 9 | fi |