]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix a few bash logic errors in install script
authorJeff Peeler <jpeeler@redhat.com>
Tue, 5 Feb 2013 05:24:21 +0000 (00:24 -0500)
committerJeff Peeler <jpeeler@redhat.com>
Tue, 5 Feb 2013 05:25:18 +0000 (00:25 -0500)
Slipped by in 0a37f56972714818fcf378945b0d3b91d1b8e10a

Change-Id: Id02454e8224f99b057cc8c9e92580ae6c26bc14e
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
tools/openstack

index 4098487a15d08c7b899c2b03cfa05a0f996b3961..2fa187f4821fe0ad6fc9b016e0b7ae0b354cac94 100755 (executable)
@@ -27,7 +27,7 @@ else
     with_cinder=0
 fi
 
-if [[ `lsb_release -sr` -gt 17 || $with_cinder ]]; then
+if [[ `lsb_release -sr` -gt 17 || $with_cinder -eq 1 ]]; then
     VOLUME_SERVICE="openstack-cinder"
     VOLUME_PATH="/var/lib/cinder/cinder-volumes.img"
     VOLUME_NAME="cinder-volumes"
@@ -264,7 +264,7 @@ EOF
     sudo rm -rf /var/log/{glance,nova,swift,keystone,cinder}/*
     os_start
     sleep 1
-    if [[ $VOLUME_SERVICE -eq "openstack-cinder" ]]; then
+    if [[ $VOLUME_SERVICE == "openstack-cinder" ]]; then
         ${BASE_DIR}/../bin/cinder-keystone-setup
     fi
     echo "Installation Complete."