Check for dumpcerts.sh return status code

master
Tim Möhlmann 6 years ago
parent 7c7b52d935
commit a5b96553aa
No known key found for this signature in database
GPG Key ID: 8677988D8072E8DE

@ -2,7 +2,7 @@
function dump() { function dump() {
echo "$(date) Dumping certificates" echo "$(date) Dumping certificates"
bash dumpcerts.sh /traefik/acme.json /tmp/work/ bash dumpcerts.sh /traefik/acme.json /tmp/work/ || return
for crt_file in $(ls /tmp/work/certs/*); do for crt_file in $(ls /tmp/work/certs/*); do
pem_file=$(echo $crt_file | sed 's/certs/pem/g' | sed 's/.crt/-public.pem/g') pem_file=$(echo $crt_file | sed 's/certs/pem/g' | sed 's/.crt/-public.pem/g')

Loading…
Cancel
Save