paypro: try to grab root certs from mozilla if github is not available.

This commit is contained in:
Christopher Jeffrey 2014-07-17 17:22:18 -07:00
parent 8725516afb
commit 4d9a752307
1 changed files with 4 additions and 1 deletions

View File

@ -4,10 +4,13 @@
# Mozilla Root Certs
# https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/included/
# http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
# https://raw.githubusercontent.com/joyent/node/master/tools/certdata.txt
wget https://raw.githubusercontent.com/joyent/node/master/src/node_root_certs.h \
|| curl -OJ https://raw.githubusercontent.com/joyent/node/master/src/node_root_certs.h
|| wget 'http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1' \
|| curl -OJ https://raw.githubusercontent.com/joyent/node/master/src/node_root_certs.h \
|| curl -OJ 'http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'
mv node_root_certs.h lib/RootCerts.js
pushd lib &> /dev/null