From: Steven Hardy Date: Thu, 7 Feb 2013 11:16:28 +0000 (+0000) Subject: heat scripts : Avoid using lsb_release in tools/openstack X-Git-Tag: 2014.1~922^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=cae898d519cf947387286ff7bf61e9c97774e4e3;p=openstack-build%2Fheat-build.git heat scripts : Avoid using lsb_release in tools/openstack lsb_release is not installed by default on Fedora (or at least it's not on my F17 box), so we should avoid using it, simple alternative is just to read /etc/fedora-release instead Change-Id: I341c151e8560fb971b11d27578934940aeeca1a7 Signed-off-by: Steven Hardy --- diff --git a/tools/openstack b/tools/openstack index 2fa187f4..26862709 100755 --- a/tools/openstack +++ b/tools/openstack @@ -27,7 +27,8 @@ else with_cinder=0 fi -if [[ `lsb_release -sr` -gt 17 || $with_cinder -eq 1 ]]; then +FEDORA_VERSION=$(cat /etc/fedora-release | awk '{print $3}') +if [[ $FEDORA_VERSION -gt 17 || $with_cinder -eq 1 ]]; then VOLUME_SERVICE="openstack-cinder" VOLUME_PATH="/var/lib/cinder/cinder-volumes.img" VOLUME_NAME="cinder-volumes"