2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 22:39:25 +01:00
This commit is contained in:
kev
2021-12-15 14:52:18 +08:00
parent 39b2387334
commit ba8a2c6d10
10 changed files with 26 additions and 11 deletions

View File

@@ -1,10 +1,13 @@
#!/bin/bash
#
# https://github.com/janeczku/docker-nfs-ganesha/blob/master/rootfs/opt/start_nfs.sh
#
set -e
# environment variables
: ${EXPORT_PATH:="/data"}
: ${EXPORT_PATH:="/data/nfs"}
: ${PSEUDO_PATH:="/"}
: ${EXPORT_ID:=0}
: ${PROTOCOLS:=4}
@@ -52,13 +55,16 @@ bootstrap_config() {
echo "* Writing configuration"
cat <<END >${GANESHA_CONFIG}
NFSV4 { Graceless = ${GRACELESS}; }
EXPORT{
NFSV4 {
Graceless = ${GRACELESS};
}
EXPORT {
Export_Id = ${EXPORT_ID};
Path = "${EXPORT_PATH}";
Pseudo = "${PSEUDO_PATH}";
FSAL {
name = VFS;
Name = VFS;
}
Access_type = RW;
Disable_ACL = true;
@@ -66,7 +72,7 @@ EXPORT{
Protocols = ${PROTOCOLS};
}
EXPORT_DEFAULTS{
EXPORT_DEFAULTS {
Transports = ${TRANSPORTS};
SecType = ${SEC_TYPE};
}