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-26 23:15:43 -07:00
|
|
|
# shellcheck disable=SC2086 # $solana_simple_client_demo should not be quoted
|
2018-06-26 22:53:05 -07:00
|
|
|
exec $solana_simple_client_demo \
|
|
|
|
-l $SOLANA_CONFIG_DIR/leader.json -d
|