From caa3f90c8386cb75d76d69a2d68a7bb3e302bbb5 Mon Sep 17 00:00:00 2001 From: prithiv Date: Tue, 8 Mar 2016 17:50:51 +0000 Subject: [PATCH] Checks the installation of curl command, Nova, Neutron and OpenStack packages related-bug: 1552433 Change-Id: If89e2a1bc959039fc7088c8295e88a199eabbedc --- tools/init-runonce | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/init-runonce b/tools/init-runonce index 39f7337977..a0f2dc891c 100755 --- a/tools/init-runonce +++ b/tools/init-runonce @@ -11,7 +11,12 @@ unset LANG unset LANGUAGE LC_ALL=C export LC_ALL - +for i in curl nova neutron openstack; do + if [[ ! $(which $i) ]]; then + echo "$i not installed. Please install $i before proceeding" + exit 1 + fi +done # Move to top level directory REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") cd "$(dirname "$REAL_PATH")/.."