export.sh créer avec définitions de base

This commit is contained in:
Thibodeau Bruno committed 2022-06-16 14:17:52 -04:00
1 parent 8348d8fbaa
commit c90b5421cc
1 file changed
+26
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
#Installation
dnf in -y nfs-server
#Services
systemctl enable --now nfs-server
#Firewall
firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --reload
#Publier
exportsfs -arv
#FSTAB bind
echo "#NFS" >> /etc/fstab
echo "/srcdir /export/tobeexported none bind,nofail,x-systemd.device-timeout=2 0 0" >> /etc/fstab
mount -a