From 7df9d1be17162feabeaba35faa87baf09debe590 Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Mon, 21 Jul 2014 15:35:34 +1000 Subject: [PATCH] Ensure sbin is in PATH. Some distros (Debian) don't have sbin in PATH for non-root users. Nova (and possibly other services) assumes that it can invoke "sysctl" without sudo. Change-Id: Iced21fc1378af309fb49688f9b63f2cd8383e304 Closes-Bug: #1300800 --- stack.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack.sh b/stack.sh index 94b90d18c0..5f12a8083a 100755 --- a/stack.sh +++ b/stack.sh @@ -34,6 +34,9 @@ export LC_ALL # Make sure umask is sane umask 022 +# Not all distros have sbin in PATH for regular users. +PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin + # Keep track of the devstack directory TOP_DIR=$(cd $(dirname "$0") && pwd)