solana/multinode-demo/drone.sh

20 lines
484 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-06-24 10:10:55 -07:00
#
2018-08-27 09:13:53 -07:00
# Starts an instance of solana-drone
#
2018-06-24 10:10:55 -07:00
here=$(dirname "$0")
2018-06-24 10:10:55 -07:00
# shellcheck source=multinode-demo/common.sh
source "$here"/common.sh
[[ -f "$SOLANA_CONFIG_DIR"/mint-keypair.json ]] || {
echo "$SOLANA_CONFIG_DIR/mint-keypair.json not found, create it by running:"
2018-07-02 16:10:55 -07:00
echo
echo " ${here}/setup.sh"
2018-07-02 16:10:55 -07:00
exit 1
}
set -x
# shellcheck disable=SC2086 # Don't want to double quote $solana_drone
exec $solana_drone --keypair "$SOLANA_CONFIG_DIR"/mint-keypair.json "$@"