Drone now grabs mint.json locally

This commit is contained in:
Michael Vines
2018-07-02 16:10:55 -07:00
parent feb1669d39
commit 7d708be121
3 changed files with 14 additions and 7 deletions

View File

@ -24,12 +24,18 @@ else
leader=${1:-${here}/..} # Default to local solana repo
fi
[[ -f "$SOLANA_CONFIG_PRIVATE_DIR"/mint.json ]] || {
echo "$SOLANA_CONFIG_PRIVATE_DIR/mint.json not found, create it by running:"
echo
echo " ${here}/setup.sh -t leader"
exit 1
}
rsync_leader_url=$(rsync_url "$leader")
set -ex
mkdir -p $SOLANA_CONFIG_DIR
$rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
$rsync -vPz "$rsync_leader_url"/config-private/mint.json $SOLANA_CONFIG_DIR/
# shellcheck disable=SC2086 # $solana_drone should not be quoted
exec $solana_drone \
-l $SOLANA_CONFIG_DIR/leader.json < $SOLANA_CONFIG_DIR/mint.json
-l $SOLANA_CONFIG_DIR/leader.json < $SOLANA_CONFIG_PRIVATE_DIR/mint.json