Skip to content

Instantly share code, notes, and snippets.

@mtholder
Created January 17, 2021 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtholder/e54c90fa37d66c69687824434f0f14d3 to your computer and use it in GitHub Desktop.
Save mtholder/e54c90fa37d66c69687824434f0f14d3 to your computer and use it in GitHub Desktop.
client-push-then-check.sh
#!/bin/bash
n=${1}
if test -z $n ; then
echo "Takes a number argument n that, as ot${n}.opentreeoflife.org should be the machine to update"
exit 1
fi
u=${2}
if test -z $u ; then
u=admin
fi
if ! bash client-push-new-cert.sh "ot${n}" "${u}" 2>&1 | tee log/ot${n}-log.txt ; then
echo Failed
exit 1
fi
cd old-fetched-secrets || exit
if ! ../compare_fetched_certs.sh $n 2>&1 | tee ../log/ot-${n}-log-check.txt ; then
echo "check failed"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment