Skip to content

Commit 489d393

Browse files
authored
Create nfs-setup.sh
1 parent f570710 commit 489d393

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

swarm-essentials/nfs-setup.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
mkdir /var/nfsshare
2+
chmod -R 755 /var/nfsshare
3+
chown nfsnobody:nfsnobody /var/nfsshare
4+
systemctl enable rpcbind
5+
systemctl enable nfs-server
6+
systemctl enable nfs-lock
7+
systemctl enable nfs-idmap
8+
systemctl start rpcbind
9+
systemctl start nfs-server
10+
systemctl start nfs-lock
11+
systemctl start nfs-idmap
12+
echo "/var/nfsshare *(rw,sync,no_root_squash,no_all_squash)" > /etc/exports
13+
systemctl restart nfs-server

0 commit comments

Comments
 (0)