From 04d1a083fa13100564fdda7f7858d148a678f210 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 15 Jun 2018 14:32:09 -0700 Subject: [PATCH] Skip |sudo sysctl ...| on macOS --- multinode-demo/leader.sh | 3 ++- multinode-demo/validator.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/multinode-demo/leader.sh b/multinode-demo/leader.sh index 29dbb25c2a..934f8f62a3 100755 --- a/multinode-demo/leader.sh +++ b/multinode-demo/leader.sh @@ -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 diff --git a/multinode-demo/validator.sh b/multinode-demo/validator.sh index b3a3a24b58..ba40322510 100755 --- a/multinode-demo/validator.sh +++ b/multinode-demo/validator.sh @@ -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}