From ff3ccb88315f31b87896c498547bf8b966f15ec7 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Fri, 24 Aug 2018 13:03:46 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index e3c12d4..2e10423 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1608,9 +1608,14 @@ while test $# -gt 0; do ;; -s) if test $# -gt 0; then + if [ -f /etc/sssd ] + then sudo realm discover - exit - else + exit + else + echo "realmd is not installed" + fi + else echo "" exit 1 fi