mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
173d0241c0
commit
978f2b7884
@ -226,6 +226,7 @@ linuxclient(){
|
|||||||
desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop | head -1 | awk '{print$1}' )
|
desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop | head -1 | awk '{print$1}' )
|
||||||
rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
||||||
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
||||||
|
fedoras=$( cat /etc/fedora-release | awk '{print $1}' )
|
||||||
#### OS detection
|
#### OS detection
|
||||||
if [ "$desktop" = "desktop" ]
|
if [ "$desktop" = "desktop" ]
|
||||||
then
|
then
|
||||||
@ -239,9 +240,14 @@ then
|
|||||||
echo "${INTRO_TEXT}"Detecting Kali linux"${END}"
|
echo "${INTRO_TEXT}"Detecting Kali linux"${END}"
|
||||||
kalijoin
|
kalijoin
|
||||||
else
|
else
|
||||||
|
if [ "$fedoras" = "Fedora" ]
|
||||||
|
then
|
||||||
|
Fedora_fn
|
||||||
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo " this seems to be a server, swithching to server mode"
|
echo " this seems to be a server, swithching to server mode"
|
||||||
ubuntuserver14
|
ubuntuserver14
|
||||||
@ -742,6 +748,12 @@ entry_cache_nowait_percentage = 75" | sudo tee -a /etc/sssd/sssd.conf
|
|||||||
sudo service sssd restart
|
sudo service sssd restart
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
############################### Fedora #########################################
|
||||||
|
Fedora_fn(){
|
||||||
|
echo "this is fedora"
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
############################### Update to Realmd from likewise ##################
|
############################### Update to Realmd from likewise ##################
|
||||||
Realmdupdate(){
|
Realmdupdate(){
|
||||||
clear
|
clear
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user