From eca9783a0ad9c7d7e2e8267457be8d4dd8b55502 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Wed, 9 Mar 2022 23:26:13 +0000 Subject: [PATCH] ensure /usr/local/bin in in path osc is typicaly installed in /usr/local/bin to avoid command not found errors when invoking osc in devstack ensure that /usr/local/bin is included in the PATH. Change-Id: I605fbc4b131149bf5d1b6307b360fe365c680b1a --- stack.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 0082b99f11..6e9ced985e 100755 --- a/stack.sh +++ b/stack.sh @@ -67,7 +67,9 @@ unset `env | grep -E '^OS_' | cut -d = -f 1` umask 022 # Not all distros have sbin in PATH for regular users. -PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin +# osc will normally be installed at /usr/local/bin/openstack so ensure +# /usr/local/bin is also in the path +PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin # Keep track of the DevStack directory TOP_DIR=$(cd $(dirname "$0") && pwd)