2 if [[ -s ~
/.bashrc
]];then . ~
/.bashrc
;fi
4 [[ $EUID == 0 ]] ||
exec sudo
-E "${BASH_SOURCE[0]}" "$@"
9 ip
=$
(host demohost |
sed -rn 's/^\S+ has address //p;T;q')/32
10 cedit demohost
/etc
/exports
<<EOF || exportfs -ra
11 /a $ip(async,rw,no_subtree_check,no_root_squash)
12 /q $ip(async,rw,no_subtree_check,no_root_squash)
16 ssh root@demohost bash
-s <<'EOFOUTER'
19 apt-get install -y nfs-common
21 sed -ri '\%^(faiserver:/[aq]|/q/p)\s%d' /etc/fstab
22 cat >>/etc/fstab <<'EOF'
23 faiserver:/a /a nfs defaults 0 0
24 faiserver:/q /q nfs defaults 0 0