From 13799455c20074cad967a0b6fbe50b883163b4fd Mon Sep 17 00:00:00 2001 From: Martin André Date: Thu, 15 Jan 2015 10:09:30 +0900 Subject: Make scripts work on latest Atomic images Remove git and jq dependency in most scripts, allowing to run them on latest atomic images, or even distribute Kolla in the form of tarball. The only remainings of git dependency are in the git pre-commit hook, and in the image build scripts. We can remove the latter one and have the scripts running in degraded mode if we really want to. I opted for a python based approach to finding the top-level directory for portability, ensuring consistent result on Linux and BSD, including OSX. Change-Id: I987174032d11b2e9d6a993c563b5dc877c15dd2d --- tools/start | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/start') diff --git a/tools/start b/tools/start index bf7bd8735..d0d3f7bc4 100755 --- a/tools/start +++ b/tools/start @@ -1,6 +1,7 @@ #!/bin/sh -cd $(git rev-parse --show-toplevel) +REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") +cd "$(dirname "$REAL_PATH")/.." ./tools/start-all-services ./tools/start-all-replications -- cgit v1.2.3