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

This commit is contained in:
Michael Vines
2019-06-05 09:10:23 -07:00
committed by GitHub
parent 5c98c1d306
commit d26fd27bf9
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