From: Joao Eduardo Luis Date: Tue, 20 Feb 2018 15:42:39 +0000 (+0000) Subject: qa/standalone: change PATH to allow finding sysctl X-Git-Tag: v13.1.0~393^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6393c7ddeb667ab39602ba52f01f5f27baa581ea;p=ceph.git qa/standalone: change PATH to allow finding sysctl If, by default, a user's PATH does not contain /sbin and /usr/sbin, we may have a hard time finding sysctl to adjust the kernel core pattern. Signed-off-by: Joao Eduardo Luis --- diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index 8bd56d9253b..e46a5c10d35 100755 --- a/qa/run-standalone.sh +++ b/qa/run-standalone.sh @@ -59,6 +59,10 @@ trap finish TERM HUP INT PATH=$(pwd)/bin:$PATH +# add /sbin and /usr/sbin to PATH to find sysctl in those cases where the +# user's PATH does not get these directories by default (e.g., tumbleweed) +PATH=$PATH:/sbin:/usr/sbin + # TODO: Use getops dryrun=false if [[ "$1" = "--dry-run" ]]; then