mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-10-30 17:47:55 +00:00
Check for dumpcerts.sh return status code
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user