diff --git a/ADconnection.sh b/ADconnection.sh index e4257dc..086a346 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -903,8 +903,12 @@ then exit fi else -echo "error in readfile" -exit +echo "No readfile" + if ! sudo realm join --verbose --user="$ADMIN" "$DOMAIN" --install=/ + then + echo "${RED_TEXT}AD join failed.please check your errors with journalctl -xe${END}" + exit + fi fi fi else