mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
0251963d2d
commit
e2181c544e
@ -17,6 +17,15 @@
|
|||||||
# ~~~~~~~~~~ Environment Setup ~~~~~~~~~~ #
|
# ~~~~~~~~~~ Environment Setup ~~~~~~~~~~ #
|
||||||
####################### Setup for Ubuntu16 and Ubuntu 14 clients #######################################
|
####################### Setup for Ubuntu16 and Ubuntu 14 clients #######################################
|
||||||
ubuntuclient(){
|
ubuntuclient(){
|
||||||
|
desktop=$(sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop)
|
||||||
|
if [ $desktop = desktop ]
|
||||||
|
then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo " this seems to be a server, swithching to server mode"
|
||||||
|
sleep 2
|
||||||
|
ubuntuserver14
|
||||||
|
fi
|
||||||
export HOSTNAME
|
export HOSTNAME
|
||||||
myhost=$( hostname )
|
myhost=$( hostname )
|
||||||
sudo apt-get -qq install realmd adcli sssd -y
|
sudo apt-get -qq install realmd adcli sssd -y
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user