You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

48 lines
1.5 KiB

  1. #!/bin/sh
  2. set -e
  3. echo "################################"
  4. echo "### SETTING UP CUSTOMIZATION ###"
  5. echo "################################"
  6. set -x
  7. # Fill this with for example: 10.0.0.0/255.255.255.0
  8. # Until you write something in, the script will fail.
  9. AUTHORIZED_NETWORK=""
  10. if [ -z "${AUTHORIZED_NETWORK}" ] ; then
  11. exit 1
  12. fi
  13. mkdir ${BODI_CHROOT_PATH}/nfs
  14. echo "# Number of servers to start up
  15. RPCNFSDCOUNT=8
  16. # Options for rpc.mountd
  17. RPCMOUNTDOPTS=\"-p 2048\"" >${BODI_CHROOT_PATH}/etc/default/nfs-kernel-server
  18. echo "/nfs ${AUTHORIZED_NETWORK}(rw,no_root_squash,subtree_check)" >>${BODI_CHROOT_PATH}/etc/exports
  19. echo "# If you do not set values for the NEED_ options, they will be attempted
  20. # autodetected; this should be sufficient for most people. Valid alternatives
  21. # for the NEED_ options are "yes" and "no".
  22. # Do you want to start the statd daemon? It is not needed for NFSv4.
  23. NEED_STATD=yes
  24. # Options for rpc.statd.
  25. # Should rpc.statd listen on a specific port? This is especially useful
  26. # when you have a port-based firewall. To use a fixed port, set this
  27. # this variable to a statd argument like: \"--port 4000 --outgoing-port 4001\".
  28. # For more information, see rpc.statd(8) or http://wiki.debian.org/SecuringNFS
  29. STATDOPTS=\"-p 2046 -o 2047\"
  30. # Do you want to start the idmapd daemon? It is only needed for NFSv4.
  31. NEED_IDMAPD=
  32. # Do you want to start the gssd daemon? It is required for Kerberos mounts.
  33. NEED_GSSD=yes " >${BODI_CHROOT_PATH}/etc/default/nfs-common