mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Added flag options see: sudo sh ADconnection.sh --help
This commit is contained in:
parent
84510c1382
commit
537bc9d28f
@ -944,6 +944,7 @@ echo ""
|
||||
echo "AD-Connection flags"
|
||||
echo "-d ubuntu debug mode GNU required"
|
||||
echo "-l Run script and log to logfile"
|
||||
echo "-j Simple direct join: sh ADconnection.sh -j admin domain"
|
||||
echo ""
|
||||
exit
|
||||
}
|
||||
@ -1035,10 +1036,13 @@ DATE=`date +%H:%M`
|
||||
MENU_FN 2>&1 | sudo tee ADconnection.log
|
||||
exit
|
||||
else
|
||||
echo "incorrect flag, see --help for help"
|
||||
echo ""
|
||||
echo ""
|
||||
if [ "$1" = "-j" ]
|
||||
then
|
||||
sudo realm join -v -U $2 $3 --install=/
|
||||
exit
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user