From: Jokin Garay Date: Wed, 8 Mar 2017 17:16:41 +0000 (+0100) Subject: Check for presence of lxd in installation, exit if not X-Git-Tag: v1.1.1~11 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=aa15051d8b6a32f4a54efe29d3e00c7b3432e84d;p=osm%2Fdevops.git Check for presence of lxd in installation, exit if not Change-Id: I355a47c3cd03582405b299fef43a59d533118bab Signed-off-by: Jokin Garay --- diff --git a/installers/install_from_source.sh b/installers/install_from_source.sh index 33dffbde..ee1b8eac 100755 --- a/installers/install_from_source.sh +++ b/installers/install_from_source.sh @@ -245,6 +245,9 @@ if [ -z "$TEST_INSTALLER" ]; then RC_CLONE=$? fi +echo -e "Checking required packages: lxd" +lxd --version &>/dev/null || echo -e "lxd not present, exiting " >&2 && exit 1 + echo -e "\nGuessing the current stable release" LATEST_STABLE_DEVOPS=`git -C $TEMPDIR tag -l v[0-9].* | tail -n1` [ -z "$COMMIT_ID" ] && [ -z "$LATEST_STABLE_DEVOPS" ] && echo "Could not find the current latest stable release" && exit 0