Correct locate rsync when running as a Snap

This commit is contained in:
Michael Vines
2018-07-02 15:34:13 -07:00
parent 2cbfe41422
commit feb1669d39
5 changed files with 8 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ rsync_leader_url=$(rsync_url "$leader")
set -e
mkdir -p $SOLANA_CONFIG_DIR
if [[ ! -r $SOLANA_CONFIG_DIR/leader.json ]]; then
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
$rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
fi
client_json=$SOLANA_CONFIG_DIR/client.json