diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh b/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh index 1d7c475e..f07602a3 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh +++ b/meta-openstack/recipes-devtools/python/python-cinder/nfs_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/nfs_volumes echo "/etc/cinder/nfs_volumes *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)" >> /etc/exports fi |