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
8b4d93d39a
commit
7644f79bcf
@ -406,12 +406,18 @@ linuxclient
|
|||||||
################################## Join for linux clients ##########################################
|
################################## Join for linux clients ##########################################
|
||||||
linuxclient(){
|
linuxclient(){
|
||||||
fedoras=$( cat /etc/fedora-release | awk '{print $1}' )
|
fedoras=$( cat /etc/fedora-release | awk '{print $1}' )
|
||||||
|
Centoss$( hostnamectl | grep -i Operating | awk '{print $3}' )
|
||||||
if [ "$fedoras" = "Fedora" ]
|
if [ "$fedoras" = "Fedora" ]
|
||||||
then
|
then
|
||||||
Fedora_fn
|
Fedora_fn
|
||||||
else
|
else
|
||||||
|
if [ "$Centoss" = "CentOS" ]
|
||||||
|
then
|
||||||
|
CentOS
|
||||||
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
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}' )
|
||||||
@ -1663,12 +1669,18 @@ fi_auth
|
|||||||
done
|
done
|
||||||
PRECHECK_FN(){
|
PRECHECK_FN(){
|
||||||
fedoras=$( cat /etc/fedora-release | awk '{print $1}' )
|
fedoras=$( cat /etc/fedora-release | awk '{print $1}' )
|
||||||
|
Centoss$( hostnamectl | grep -i Operating | awk '{print $3}' )
|
||||||
if [ "$fedoras" = "Fedora" ]
|
if [ "$fedoras" = "Fedora" ]
|
||||||
then
|
then
|
||||||
YUM_MENU
|
YUM_MENU
|
||||||
else
|
else
|
||||||
|
if [ "$Centoss" = "CentOS" ]
|
||||||
|
then
|
||||||
|
YUM_MENU
|
||||||
|
else
|
||||||
MENU_FN
|
MENU_FN
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
PRECHECK_FN
|
PRECHECK_FN
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user