Added flag options see: sudo sh ADconnection.sh --help

This commit is contained in:
root 2018-05-20 10:38:17 +02:00
parent 14966b7d40
commit 4c0a1e04d2

View File

@ -922,6 +922,7 @@ clear
echo "Usage: sh ADconnection.sh [--help] [-d (ubuntu debug mode)]" echo "Usage: sh ADconnection.sh [--help] [-d (ubuntu debug mode)]"
echo " [-j admin domain (Simple direct join)" echo " [-j admin domain (Simple direct join)"
echo " [-l (script output to log file)]" echo " [-l (script output to log file)]"
echo " [-s (Discover domain)]"
echo "" echo ""
echo"" echo""
echo "${INTRO_TEXT} Active directory connection tool ${INTRO_TEXT}" echo "${INTRO_TEXT} Active directory connection tool ${INTRO_TEXT}"
@ -1040,7 +1041,12 @@ else
sudo realm join -v -U $2 $3 --install=/ sudo realm join -v -U $2 $3 --install=/
exit exit
else else
echo "" if [ "$1" = "-s" ]
then
sudo realm discover
else
echo ""
fi
fi fi
fi fi
fi fi