nfs-utils.kur-kos 653 B

1234567891011121314151617181920212223242526
  1. if [ ! -f /etc/sysconfig/nfs-server ]; then
  2. cat > /etc/sysconfig/nfs-server << "EOF"
  3. PORT="2049"
  4. PROCESSES="8"
  5. QUOTAS="no"
  6. KILLDELAY="10"
  7. EOF
  8. fi
  9. if [ ! -f /etc/exports ]; then
  10. cat > /etc/exports << "EOF"
  11. # /etc/exports - exports(5) - directories exported to NFS clients
  12. #
  13. # Example for NFSv2 and NFSv3:
  14. # /srv/home hostname1(rw,sync) hostname2(ro,sync)
  15. # Example for NFSv4:
  16. # /srv/nfs4 hostname1(rw,sync,fsid=0)
  17. # /srv/nfs4/home hostname1(rw,sync,nohide)
  18. # Using Kerberos and integrity checking:
  19. # /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0)
  20. # /srv/nfs4/home *(rw,sync,sec=krb5i,nohide)
  21. #
  22. # Use `exportfs -arv` to reload.
  23. EOF
  24. fi