summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh
diff options
context:
space:
mode:
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.sh7
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 1d7c475..f07602a 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 @@
1#! /bin/bash 1#! /bin/bash
2 2
3is_default=%IS_DEFAULT%
4if [ $# -eq 1 ]; then
5 is_default=$1
6fi
7
3# Default setup 8# Default setup
4if [ "$1" == "1" ]; then 9if [ "$is_default" == "1" ]; then
5 mkdir /etc/cinder/nfs_volumes 10 mkdir /etc/cinder/nfs_volumes
6 echo "/etc/cinder/nfs_volumes *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)" >> /etc/exports 11 echo "/etc/cinder/nfs_volumes *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)" >> /etc/exports
7fi 12fi