aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKirill Proskurin <kproskurin@mirantis.com>2015-11-02 13:49:42 +0300
committerProskurin Kirill <kproskurin@mirantis.com>2015-11-06 14:03:30 +0300
commit396014f8d10b4821adc69ed5c4869309b76147d4 (patch)
treed0a23308a6a1bcc989bda72bbc6b431f5b4946e0 /tools
parentefab0314e9a19dfa179b2ca02dd9a6f18c352295 (diff)
downloadkolla-396014f8d10b4821adc69ed5c4869309b76147d4.tar.gz
kolla-396014f8d10b4821adc69ed5c4869309b76147d4.zip
Few improvements in Kolla tools. Added Ubuntu support.
pip install default prefix in Ubuntu is /usr/local, and Kolla tools scripts didnt respect that. So I added few OS checks in this scripts. I improve config path check in build.py. Added more verbose error if we can't find config directory. Change-Id: Ide521ed205b0dc1fc27e237a9a8f4da0168e664f Closes-Bug: #1512302
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kolla-ansible2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible
index 573158df0..d24941193 100755
--- a/tools/kolla-ansible
+++ b/tools/kolla-ansible
@@ -7,6 +7,8 @@ function find_base_dir {
local dir_name="$(dirname "$real_path")"
if [[ ${dir_name} == "/usr/bin" ]]; then
BASEDIR=/usr/share/kolla
+ elif [[ ${dir_name} == "/usr/local/bin" ]]; then
+ BASEDIR=/usr/local/share/kolla
else
BASEDIR="${dir_name}/.."
fi