Skip |sudo sysctl ...| on macOS

This commit is contained in:
Michael Vines 2018-06-15 14:32:09 -07:00
parent 327ee1dae8
commit 04d1a083fa
2 changed files with 3 additions and 2 deletions

View File

@ -3,5 +3,6 @@
# if RUST_LOG is unset, default to info
export RUST_LOG=${RUST_LOG:-solana=info}
sudo sysctl -w net.core.rmem_max=26214400
set -x
[[ $(uname) = Linux ]] && sudo sysctl -w net.core.rmem_max=26214400
cargo run --release --bin solana-fullnode -- -l leader.json < genesis.log

View File

@ -11,7 +11,7 @@ set -x
rsync -v -e ssh "$LEADER"/{mint-demo.json,leader.json,genesis.log} . || exit $?
sudo sysctl -w net.core.rmem_max=26214400
[[ $(uname) = Linux ]] && sudo sysctl -w net.core.rmem_max=26214400
# if RUST_LOG is unset, default to info
export RUST_LOG=${RUST_LOG:-solana=info}