iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various fixes, make settable basefile dir
[automated-distro-installer]
/
faiserver-disable
diff --git
a/faiserver-disable
b/faiserver-disable
index 3cb6da22ea45120a4ffb99410b98a94e35750d03..0a9ad8d02802a05340afac4e96f1335afc7824f2 100755
(executable)
--- a/
faiserver-disable
+++ b/
faiserver-disable
@@
-16,8
+16,9
@@
if [[ $1 ]]; then
fi
ssh root@$(chost faiserver) bash <<'EOF'
fi
ssh root@$(chost faiserver) bash <<'EOF'
+set -eE -o pipefail
if modprobe nfsd &>/dev/null; then
if modprobe nfsd &>/dev/null; then
- sed -ri --follow-symlinks '\%^/srv/fai/d' /etc/exports
+ sed -ri --follow-symlinks '\%^/srv/fai/
%
d' /etc/exports
exportfs -ra
else
rm -f /etc/apache2/sites-enabled/faiserver.conf
exportfs -ra
else
rm -f /etc/apache2/sites-enabled/faiserver.conf