mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Added flag options see: sudo sh ADconnection.sh --help
This commit is contained in:
parent
14966b7d40
commit
4c0a1e04d2
@ -922,6 +922,7 @@ clear
|
||||
echo "Usage: sh ADconnection.sh [--help] [-d (ubuntu debug mode)]"
|
||||
echo " [-j admin domain (Simple direct join)"
|
||||
echo " [-l (script output to log file)]"
|
||||
echo " [-s (Discover domain)]"
|
||||
echo ""
|
||||
echo""
|
||||
echo "${INTRO_TEXT} Active directory connection tool ${INTRO_TEXT}"
|
||||
@ -1039,10 +1040,15 @@ else
|
||||
then
|
||||
sudo realm join -v -U $2 $3 --install=/
|
||||
exit
|
||||
else
|
||||
if [ "$1" = "-s" ]
|
||||
then
|
||||
sudo realm discover
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
MENU_FN
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user