Fix more shellchecks

Also, stops current nodes before pushing updates
This commit is contained in:
Pankaj Garg 2018-06-27 11:49:43 -07:00 committed by Greg Fitzgerald
parent da215d1a21
commit 79a97ada04
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@ fi
PATH="$HOME"/.cargo/bin:"$PATH"
cargo install --force
ip_addr_array=()
# Get IP address array
# shellcheck source=/dev/null
source "$ip_addr_file"
@ -51,6 +52,10 @@ for ip_addr in "${ip_addr_array[@]}"; do
rsync -r -av "$ssh_keys"/* "$remote_user"@"$ip_addr":~/.ssh/
fi
# Stop current nodes
ssh "$remote_user"@"$ip_addr" 'pkill -9 solana-fullnode'
ssh "$remote_user"@"$ip_addr" 'pkill -9 solana-client-demo'
# Run setup
ssh "$remote_user"@"$ip_addr" "$ssh_command_prefix"'setup.sh -p "$ip_addr"'