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
3d10551cbf
commit
7a02b98523
@ -405,24 +405,28 @@ linuxclient
|
|||||||
################################## Join for linux clients ##########################################
|
################################## Join for linux clients ##########################################
|
||||||
linuxclient(){
|
linuxclient(){
|
||||||
fedoras=$( cat /etc/fedora-release | awk '{print $1}' ) < /dev/null > /dev/null 2>&1
|
fedoras=$( cat /etc/fedora-release | awk '{print $1}' ) < /dev/null > /dev/null 2>&1
|
||||||
Centoss=$( hostnamectl | grep -i Operating | awk '{print $3}' )
|
TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' )
|
||||||
Debians=$( hostnamectl | grep -i Operating | awk '{print $3}' )
|
|
||||||
if [ "$fedoras" = "Fedora" ]
|
if [ "$fedoras" = "Fedora" ]
|
||||||
then
|
then
|
||||||
echo "Fedora detected"
|
echo "Fedora detected"
|
||||||
Fedora_fn
|
Fedora_fn
|
||||||
else
|
else
|
||||||
if [ "$Centoss" = "CentOS" ]
|
if [ "$TheOS" = "CentOS" ]
|
||||||
then
|
then
|
||||||
echo "Cent OS detected"
|
echo "Cent OS detected"
|
||||||
CentOS
|
CentOS
|
||||||
else
|
else
|
||||||
if [ "$Debians" = "Debian" ]
|
if [ "$TheOS" = "Debian" ]
|
||||||
then
|
then
|
||||||
echo "Debian detected"
|
echo "Debian detected"
|
||||||
debianclient
|
debianclient
|
||||||
else
|
else
|
||||||
echo "Ubuntu Detected"
|
if [ $"TheOS" = "Ubuntu" ]
|
||||||
|
then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user