2018-06-26 22:53:05 -07:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2018-06-27 07:40:22 -07:00
|
|
|
# usage: $0 <rsync network path to solana repo on leader machine>"
|
2018-06-26 22:53:05 -07:00
|
|
|
#
|
|
|
|
|
|
|
|
here=$(dirname "$0")
|
2018-06-26 23:15:43 -07:00
|
|
|
# shellcheck source=multinode-demo/common.sh
|
2018-06-26 22:53:05 -07:00
|
|
|
source "$here"/common.sh
|
|
|
|
SOLANA_CONFIG_DIR=config-client-demo
|
|
|
|
|
|
|
|
leader=${1:-${here}/..} # Default to local solana repo
|
|
|
|
|
|
|
|
rsync_leader_url=$(rsync_url "$leader")
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
mkdir -p $SOLANA_CONFIG_DIR
|
|
|
|
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
2018-06-28 11:56:53 -07:00
|
|
|
rsync -vPz "$rsync_leader_url"/config/mint.json $SOLANA_CONFIG_DIR/
|
2018-06-26 22:53:05 -07:00
|
|
|
|
2018-06-29 09:16:20 -07:00
|
|
|
# shellcheck disable=SC2086 # $solana_wallet should not be quoted
|
2018-06-28 11:56:53 -07:00
|
|
|
exec $solana_wallet \
|
|
|
|
-l $SOLANA_CONFIG_DIR/leader.json -m $SOLANA_CONFIG_DIR/mint.json -d
|