chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
650fbf1
)
Infra: get-dm-txt: Break out $certargs
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 26 Jun 2015 23:46:57 +0000
(
00:46
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 26 Jun 2015 23:46:57 +0000
(
00:46
+0100)
infra/get-dm-txt
patch
|
blob
|
history
diff --git
a/infra/get-dm-txt
b/infra/get-dm-txt
index 7902c1c559d023f0ee800bed11f83546188e025a..df715d069b8de1aa9ee3f1d08e89d31ff6804a8f 100755
(executable)
--- a/
infra/get-dm-txt
+++ b/
infra/get-dm-txt
@@
-8,8
+8,10
@@
server=ftp-master.debian.org
path=$file
cert=/etc/ssl/certs/$server.pem
+certargs="--ca-certificate=$cert --ca-directory=/dev/enoent"
+
with-lock-ex -f $file.lock sh -c "
- if ! wget
--ca-certificate=$cert --ca-directory=/dev/enoent
\
+ if ! wget
$certargs
\
-O $file.new https://$server/$path >$file.stderr 2>&1; then
cat $file.stderr >&2
exit 127