aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh
index 30997d12..1c87ff9d 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh
+++ b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh
@@ -1,7 +1,12 @@
#! /bin/bash
+is_default=%IS_DEFAULT%
+if [ $# -eq 1 ]; then
+ is_default=$1
+fi
+
# Default setup
-if [ "$1" == "1" ]; then
+if [ "$is_default" == "1" ]; then
mkdir /etc/cinder/glusterfs_volumes
/etc/init.d/glusterd start
gluster volume create glusterfs_volumes controller:/etc/cinder/glusterfs_volumes force