Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-24 13:11:22 +02:00 committed by GitHub
parent ff3ccb8831
commit 1feee67049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1608,12 +1608,14 @@ while test $# -gt 0; do
;; ;;
-s) -s)
if test $# -gt 0; then if test $# -gt 0; then
if [ -f /etc/sssd ] realm
if [ "$?" = "0" ]
then then
sudo realm discover sudo realm discover
exit exit
else else
echo "realmd is not installed" echo "realmd is not installed"
exit
fi fi
else else
echo "" echo ""