13 lines
248 B
Bash
13 lines
248 B
Bash
#!/bin/bash
|
|
|
|
# ubuntu 20.04
|
|
|
|
FOLDER=/mnt/data
|
|
|
|
apt update && apt install -y nfs-kernel-server
|
|
chown nobody:nogroup $FOLDER
|
|
|
|
echo "$FOLDER 192.168.9.0/24(rw,sync,no_subtree_check,no_root_squash)" >> /etc/exports
|
|
|
|
systemctl restart nfs-kernel-server
|