X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=faiserver-disable;h=0a9ad8d02802a05340afac4e96f1335afc7824f2;hp=3cb6da22ea45120a4ffb99410b98a94e35750d03;hb=8bf6d9c4cc9ec88976c62af33f32c0c660e977e0;hpb=da61a304a10de72288782a9d872769fe44576f50 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