65e2aa844b6e861b32b3f07ac6c5c91a465e525e
3 readonly this_file
="$(readlink -f -- "${BASH_SOURCE[0]}")"
4 script_dir
="${this_file%/*}"
5 # shellcheck source=./bash-trace
6 source "${script_dir}/bash-trace"
8 source "${script_dir}/bash-trace"
14 Disable the fai nfs server exports
25 faiserver_addr
=$
(host faiserver |
sed -rn 's/^\S+ has address //p;T;q' ||
:)
26 if ip a |
grep "^ *inet.\? $faiserver_addr" &>/dev
/null
; then
27 echo "$0: disabling fai nfs exports or apache site"
28 .
/faiserver-disable-local
30 echo "$0: sshing to $(chost faiserver) to disable fai nfs exports or apache site"
31 ssh root@$
(chost faiserver
) bash
<faiserver-disable-local