Created
November 14, 2020 22:23
-
-
Save ajsutton/2cb5740539f2ef638c82a3c353fd0771 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| set -euo pipefail | |
| DIR=${1?Must specify host dir} | |
| mkdir "$DIR/teku" | |
| mkdir "$DIR/teku/keys" | |
| mkdir "$DIR/teku/secrets" | |
| for FILE in $DIR/keys/* | |
| do | |
| PUBKEY=`basename $FILE` | |
| cp $FILE/voting-keystore.json $DIR/teku/keys/$PUBKEY.json | |
| cp $DIR/secrets/$PUBKEY $DIR/teku/secrets/$PUBKEY.txt | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment