iankelling.org
/
git
/
automated-distro-installer
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
don't have distros we aren't booting waiting to boot without pass
[automated-distro-installer]
/
faiserver-enable
1
#!/bin/bash
2
3
set -eE -o
pipefail
4
trap
'echo "
$0
:
$LINENO
:error:
\"
$BASH_COMMAND
\"
returned $?" >&2'
ERR
5
6
usage
() {
7
cat
<<EOF
8
Usage:
${0##*/}
9
Disable the fai nfs server.
10
EOF
11
exit
$1
12
}
13
14
if
[[
$1
]];
then
15
usage
1
16
fi
17
18
ssh
root@$
(
chost faiserver
)
"sed -ri 's,^\s*#\s*(/srv/fai/.*),\1,' /etc/exports; exportfs -ra"