autofs/setup-client.sh

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