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
bef628fa35
commit
e0e80013b3
@ -407,6 +407,7 @@ linuxclient
|
|||||||
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}' )
|
Centoss=$( hostnamectl | grep -i Operating | awk '{print $3}' )
|
||||||
|
Debians=$( hostnamectl | grep -i Operating | awk '{print $3}' )
|
||||||
if [ "$fedoras" = "Fedora" ]
|
if [ "$fedoras" = "Fedora" ]
|
||||||
then
|
then
|
||||||
Fedora_fn
|
Fedora_fn
|
||||||
@ -415,9 +416,14 @@ if [ "$Centoss" = "CentOS" ]
|
|||||||
then
|
then
|
||||||
CentOS
|
CentOS
|
||||||
else
|
else
|
||||||
|
if [ "$Debians" = "Debian" ]
|
||||||
|
then
|
||||||
|
debianclient
|
||||||
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
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}' )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user