X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=faiserver-disable;h=0a9ad8d02802a05340afac4e96f1335afc7824f2;hp=3cb6da22ea45120a4ffb99410b98a94e35750d03;hb=a2b8051e808621b9a33617d0c75d212bd2141ddc;hpb=175cf089388948672b5b4b6f9a8cf5a96a7015f2 diff --git a/faiserver-disable b/faiserver-disable index 3cb6da2..0a9ad8d 100755 --- a/faiserver-disable +++ b/faiserver-disable @@ -16,8 +16,9 @@ if [[ $1 ]]; then fi ssh root@$(chost faiserver) bash <<'EOF' +set -eE -o pipefail 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