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

This commit is contained in:
root 2018-05-19 23:07:17 +02:00
parent 84510c1382
commit 537bc9d28f

View File

@ -944,6 +944,7 @@ echo ""
echo "AD-Connection flags" echo "AD-Connection flags"
echo "-d ubuntu debug mode GNU required" echo "-d ubuntu debug mode GNU required"
echo "-l Run script and log to logfile" echo "-l Run script and log to logfile"
echo "-j Simple direct join: sh ADconnection.sh -j admin domain"
echo "" echo ""
exit exit
} }
@ -1025,20 +1026,23 @@ clear
readmes readmes
exit exit
else else
if [ "$1" = "-d" ] if [ "$1" = "-d" ]
then then
linuxclientdebug linuxclientdebug
else else
if [ "$1" = "-l" ] if [ "$1" = "-l" ]
then then
DATE=`date +%H:%M` DATE=`date +%H:%M`
MENU_FN 2>&1 | sudo tee ADconnection.log MENU_FN 2>&1 | sudo tee ADconnection.log
exit exit
else else
echo "incorrect flag, see --help for help" if [ "$1" = "-j" ]
echo "" then
echo "" sudo realm join -v -U $2 $3 --install=/
exit exit
else
echo ""
fi
fi fi
fi fi
fi fi