File: deploy_datalad-rootca

package info (click to toggle)
datalad 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,148 kB
  • sloc: python: 69,414; sh: 1,521; makefile: 220
file content (9 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# deploy the root CA that comes with the sources in order to be able to test
# against the internal HTTPS server without fiddling

if hash update-ca-certificates; then
    sudo mkdir -p /usr/local/share/ca-certificates/
    sudo cp datalad/tests/ca/ca-root.pem /usr/local/share/ca-certificates/datalad-root.crt
    sudo update-ca-certificates
fi