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
75739588a2
commit
06c9b85d4e
@ -1661,13 +1661,12 @@ fi_auth
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
PRECHECK_FN(){
|
PRECHECK_FN(){
|
||||||
fedoras=$( cat /etc/fedora-release | awk '{print $1}' )
|
TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
|
||||||
Centoss=$( hostnamectl | grep -i Operating | awk '{print $3}' )
|
if [ "$TheOS" = "Fedora" ]
|
||||||
if [ "$fedoras" = "Fedora" ]
|
|
||||||
then
|
then
|
||||||
YUM_MENU
|
YUM_MENU
|
||||||
else
|
else
|
||||||
if [ "$Centoss" = "CentOS" ]
|
if [ "$TheOS" = "CentOS" ]
|
||||||
then
|
then
|
||||||
YUM_MENU
|
YUM_MENU
|
||||||
else
|
else
|
||||||
@ -1676,4 +1675,3 @@ fi
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
PRECHECK_FN
|
PRECHECK_FN
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user