Created
January 17, 2021 20:38
-
-
Save mtholder/e54c90fa37d66c69687824434f0f14d3 to your computer and use it in GitHub Desktop.
client-push-then-check.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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