iankelling.org
/
git
/
automated-distro-installer
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
better handling of home http server
[automated-distro-installer]
/
faiserver-disable
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 --follow-symlinks 's,^/srv/fai/,#\0,' /etc/exports; exportfs -ra"