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
057624d47d
commit
5377d13bb7
@ -411,7 +411,6 @@ TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev
|
|||||||
MintOS=$( hostnamectl | grep -i Operating | awk '{print $4}' ) < /dev/null > /dev/null 2>&1
|
MintOS=$( hostnamectl | grep -i Operating | awk '{print $4}' ) < /dev/null > /dev/null 2>&1
|
||||||
rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
|
rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
|
||||||
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
|
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
|
||||||
desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop | head -1 | awk '{print$1}' ) < /dev/null > /dev/null 2>&1
|
|
||||||
|
|
||||||
#### OS detection ####
|
#### OS detection ####
|
||||||
if [ "$TheOS" = "Fedora" ] < /dev/null > /dev/null 2>&1
|
if [ "$TheOS" = "Fedora" ] < /dev/null > /dev/null 2>&1
|
||||||
@ -434,6 +433,7 @@ then
|
|||||||
echo "Ubuntu detected"
|
echo "Ubuntu detected"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Checking if it is a Desktop or server"
|
echo "Checking if it is a Desktop or server"
|
||||||
|
desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop | head -1 | awk '{print$1}' ) < /dev/null > /dev/null 2>&1
|
||||||
if [ "$desktop" = "desktop" ] < /dev/null > /dev/null 2>&1
|
if [ "$desktop" = "desktop" ] < /dev/null > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo "Ubuntu Desktop detected"
|
echo "Ubuntu Desktop detected"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user