File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ jobs:
3232 chmod 600 ~/.ssh/id_ed25519
3333 ssh-keyscan staging-ipv4.testrun.org > ~/.ssh/known_hosts
3434 # save previous acme & dkim state
35- rsync -avz root@staging-ipv4.testrun.org:/var/lib/acme acme-ipv4 || true
36- rsync -avz root@staging-ipv4.testrun.org:/etc/dkimkeys dkimkeys-ipv4 || true
35+ rsync -avz --delete root@staging-ipv4.testrun.org:/var/lib/acme acme-ipv4
36+ rsync -avz --delete root@staging-ipv4.testrun.org:/etc/dkimkeys dkimkeys-ipv4
3737 # store previous acme & dkim state on ns.testrun.org, if it contains useful certs
38- if [ -f dkimkeys-ipv4/dkimkeys/opendkim.private ]; then rsync -avz -e "ssh -o StrictHostKeyChecking=accept-new" dkimkeys-ipv4 root@ns.testrun.org:/tmp/ || true; fi
39- if [ "$(ls -A acme-ipv4/acme/certs)" ]; then rsync -avz -e "ssh -o StrictHostKeyChecking=accept-new" acme-ipv4 root@ns.testrun.org:/tmp/ || true; fi
38+ test -f dkimkeys-ipv4/dkimkeys/opendkim.private && rsync -avz --delete - e "ssh -o StrictHostKeyChecking=accept-new" dkimkeys-ipv4 root@ns.testrun.org:/tmp/
39+ test -n "$(ls -A acme-ipv4/acme/certs)" && rsync -avz --delete - e "ssh -o StrictHostKeyChecking=accept-new" acme-ipv4 root@ns.testrun.org:/tmp/
4040 # make sure CAA record isn't set
4141 scp -o StrictHostKeyChecking=accept-new .github/workflows/staging-ipv4.testrun.org-default.zone root@ns.testrun.org:/etc/nsd/staging-ipv4.testrun.org.zone
4242 ssh root@ns.testrun.org sed -i '/CAA/d' /etc/nsd/staging-ipv4.testrun.org.zone
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ jobs:
3232 chmod 600 ~/.ssh/id_ed25519
3333 ssh-keyscan staging2.testrun.org > ~/.ssh/known_hosts
3434 # save previous acme & dkim state
35- rsync -avz root@staging2.testrun.org:/var/lib/acme . || true
36- rsync -avz root@staging2.testrun.org:/etc/dkimkeys . || true
35+ rsync -avz --delete root@staging2.testrun.org:/var/lib/acme .
36+ rsync -avz --delete root@staging2.testrun.org:/etc/dkimkeys .
3737 # store previous acme & dkim state on ns.testrun.org, if it contains useful certs
38- if [ -f dkimkeys/opendkim.private ]; then rsync -avz -e "ssh -o StrictHostKeyChecking=accept-new" dkimkeys root@ns.testrun.org:/tmp/ || true; fi
39- if [ "$(ls -A acme/certs)" ]; then rsync -avz -e "ssh -o StrictHostKeyChecking=accept-new" acme root@ns.testrun.org:/tmp/ || true; fi
38+ test -f dkimkeys/opendkim.private && rsync -avz --delete - e "ssh -o StrictHostKeyChecking=accept-new" dkimkeys root@ns.testrun.org:/tmp/
39+ test -n "$(ls -A acme/certs)" && rsync -avz -e "ssh -o StrictHostKeyChecking=accept-new" acme root@ns.testrun.org:/tmp/
4040 # make sure CAA record isn't set
4141 scp -o StrictHostKeyChecking=accept-new .github/workflows/staging.testrun.org-default.zone root@ns.testrun.org:/etc/nsd/staging2.testrun.org.zone
4242 ssh root@ns.testrun.org sed -i '/CAA/d' /etc/nsd/staging2.testrun.org.zone
You can’t perform that action at this time.
0 commit comments