]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/standalone: change PATH to allow finding sysctl
authorJoao Eduardo Luis <joao@suse.de>
Tue, 20 Feb 2018 15:42:39 +0000 (15:42 +0000)
committerJoao Eduardo Luis <joao@suse.de>
Fri, 6 Apr 2018 03:18:22 +0000 (04:18 +0100)
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 <joao@suse.de>
qa/run-standalone.sh

index 8bd56d9253bf52cd809e39c1829c88fbd6b16074..e46a5c10d35f96256d2728801d636ca2a22bc811 100755 (executable)
@@ -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