aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh
blob: f07602a39e6370b228928984733dcb076923d156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash

is_default=%IS_DEFAULT%
if [ $# -eq 1 ]; then
    is_default=$1
fi

# Default setup
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