Fix more shellchecks
Also, stops current nodes before pushing updates
This commit is contained in:
committed by
Greg Fitzgerald
parent
da215d1a21
commit
79a97ada04
@ -28,6 +28,7 @@ fi
|
|||||||
PATH="$HOME"/.cargo/bin:"$PATH"
|
PATH="$HOME"/.cargo/bin:"$PATH"
|
||||||
cargo install --force
|
cargo install --force
|
||||||
|
|
||||||
|
ip_addr_array=()
|
||||||
# Get IP address array
|
# Get IP address array
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source "$ip_addr_file"
|
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/
|
rsync -r -av "$ssh_keys"/* "$remote_user"@"$ip_addr":~/.ssh/
|
||||||
fi
|
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
|
# Run setup
|
||||||
ssh "$remote_user"@"$ip_addr" "$ssh_command_prefix"'setup.sh -p "$ip_addr"'
|
ssh "$remote_user"@"$ip_addr" "$ssh_command_prefix"'setup.sh -p "$ip_addr"'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user