diff options
| author | Amy Fong <amy.fong@windriver.com> | 2014-07-24 13:04:41 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-07-25 15:45:25 -0400 |
| commit | 3bbd08214617f5a5e7b54253f9f8b786623546c8 (patch) | |
| tree | d782a074f3a013b302446817ef9d147ddee6bb60 /meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh | |
| parent | ce99c21125614dfa72428a9ef3ed563db8c99c93 (diff) | |
| download | meta-cloud-services-3bbd08214617f5a5e7b54253f9f8b786623546c8.tar.gz | |
openstack initscript: add reset
Some of the openstack data is associated with external resources
(ie glance may have external files), we explicitly invoke the delete commands on those
in additional to dropping and recreating the databases.
Signed-off-by: Amy Fong <amy.fong@windriver.com>
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 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 | ||
| 3 | is_default=%IS_DEFAULT% | ||
| 4 | if [ $# -eq 1 ]; then | ||
| 5 | is_default=$1 | ||
| 6 | fi | ||
| 7 | |||
| 3 | # Default setup | 8 | # Default setup |
| 4 | if [ "$1" == "1" ]; then | 9 | if [ "$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 |
| 7 | fi | 12 | fi |
