dotfiles

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

commit 874b1777de5e04427ee541d2e83834ff3bc2f350
parent 8470471e86630c0648e07af700f38bf154534c3d
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 10 Jan 2019 22:15:34 +0100

Add script to generate and install ca_certs on macos

Diffstat:
Ainit/60_macos_ca_certs.sh | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/init/60_macos_ca_certs.sh b/init/60_macos_ca_certs.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -e + +# OSX-stuff only +[[ "$(uname)" != "Darwin" ]] && return 0 + +if [[ ! -f /etc/ssl/certs/ca-certificates.crt ]]; then + cd ~/tmp + wget -O http://curl.haxx.se/download/curl-7.63.0.tar.bz2 + tar xzf curl-7.63.0.tar.bz2 + cd curl-7.63.0/lib/ + ./mk-ca-bundle.pl + sudo cp ca-bundle.crt /etc/ssl/certs/ca-certificates.crt + cd ~/tmp + rm -rf ~/tmp/curl-7.63.0 +fi