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