Skip to content

Instantly share code, notes, and snippets.

@ajsutton
Created November 14, 2020 22:23
Show Gist options
  • Select an option

  • Save ajsutton/2cb5740539f2ef638c82a3c353fd0771 to your computer and use it in GitHub Desktop.

Select an option

Save ajsutton/2cb5740539f2ef638c82a3c353fd0771 to your computer and use it in GitHub Desktop.
#!/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