dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | Submodules | README | LICENSE

60_macos_ca_certs.sh (400B)


      1 #!/usr/bin/env bash
      2 set -e
      3 
      4 # OSX-stuff only
      5 [[ "$(uname)" != "Darwin" ]] && return 0
      6 
      7 if [[ ! -f /etc/ssl/certs/ca-certificates.crt ]]; then
      8     cd ~/tmp
      9     wget -O http://curl.haxx.se/download/curl-7.63.0.tar.bz2
     10     tar xzf curl-7.63.0.tar.bz2
     11     cd curl-7.63.0/lib/
     12     ./mk-ca-bundle.pl
     13     sudo cp ca-bundle.crt /etc/ssl/certs/ca-certificates.crt
     14     cd ~/tmp
     15     rm -rf ~/tmp/curl-7.63.0
     16 fi