deal with differentl SSL cert setups :-(
authorSteve McIntyre <steve@einval.com>
Mon, 19 Dec 2016 15:50:03 +0000 (15:50 +0000)
committerSteve McIntyre <steve@einval.com>
Mon, 19 Dec 2016 15:50:03 +0000 (15:50 +0000)
crontab
wrapper

diff --git a/crontab b/crontab
index b0c683c..dac1265 100644 (file)
--- a/crontab
+++ b/crontab
@@ -22,4 +22,4 @@
 # m h  dom mon dow   command
 #MAILTO=""
 MAILTO=93sam@debian.org
-01 04 * * * if [ ! -d strace-test ] ; then git -c http.sslcainfo=/etc/ssl/ca-global/ca-certificates.crt clone https://git.einval.com/git/strace-test.git; fi; ./strace-test/wrapper
+01 04 * * * if [ ! -d strace-test ]; then CAI=/etc/ssl/certs/; if [ -d /etc/ssl/ca-global ]; then CAI=/etc/ssl/ca-global; fi ; rm -f /home/93sam/.CA; ln -sf $CAI /home/93sam/.CA; git -c http.sslcainfo=/home/93sam/.CA/ca-certificates.crt clone https://git.einval.com/git/strace-test.git; fi; ./strace-test/wrapper
diff --git a/wrapper b/wrapper
index 0543de4..3f33e04 100755 (executable)
--- a/wrapper
+++ b/wrapper
@@ -4,7 +4,7 @@ cd strace-test
 
 # Set up git variables cleanly, and pull
 git config --unset http.sslcainfo
-git config --add http.sslcainfo /etc/ssl/ca-global/ca-certificates.crt
+git config --add http.sslcainfo /home/93sam/.CA
 git pull -q
 
 # Make sure the crontab is updated