autofs/setup-client.sh
raw link view readme1 | |
2 | yum install nfs-utils autofs -y |
3 | |
4 | cat >> /etc/auto.misc << EOF |
5 | myalphashare -ro,soft,intr $SERVERNAME:/var/nfs |
6 | EOF |
7 | |
8 | systemctl start autofs |
9 | |
10 | cat >> /root/test.sh << EOF |
11 | cat /misc/myalphashare/file01 |
12 | EOF |
13 | chmod +x /root/test.sh |
14 |