Avoid sudo in tune-system.sh unless requested by the user (#4556) (#4557)

automerge
This commit is contained in:
Michael Vines
2019-06-05 09:38:43 -07:00
committed by Grimes
parent 74b97166a9
commit e2a050f77d
2 changed files with 37 additions and 25 deletions

View File

@@ -61,6 +61,7 @@ local|tar)
./fetch-perf-libs.sh
# shellcheck source=/dev/null
source ./target/perf-libs/env.sh
SUDO_OK=1 source scripts/tune-system.sh
(
sudo scripts/oom-monitor.sh