diff options
Diffstat (limited to 'base/all')
-rwxr-xr-x | base/all/root/scripts/tasks/setup_cluster_nas.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/all/root/scripts/tasks/setup_cluster_nas.sh b/base/all/root/scripts/tasks/setup_cluster_nas.sh index d970118..5635757 100755 --- a/base/all/root/scripts/tasks/setup_cluster_nas.sh +++ b/base/all/root/scripts/tasks/setup_cluster_nas.sh @@ -37,7 +37,8 @@ auth_type=$(sed -r -n -e 's@^auth_method[[:space:]]*=[[:space:]]*(files|winbind) case "$auth_type" in winbind) echo "Joining domain" - net ads join -U"$domain_auth" + timeout 10 net ads join -U"$domain_auth" || \ + { echo "Domain join failed"; exit 1; } ;; esac |