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
2cca983681
commit
8b4d93d39a
@ -861,6 +861,7 @@ fi_auth
|
||||
|
||||
# Functional but ugly
|
||||
CentOS(){
|
||||
#ugly but functional
|
||||
export HOSTNAME
|
||||
myhost=$( hostname )
|
||||
yum -y install realmd sssd oddjob oddjob-mkhomedir adcli samba-common-tools samba-common
|
||||
@ -869,7 +870,7 @@ ping -c 1 $DOMAIN
|
||||
if [ $? = 0 ]
|
||||
then
|
||||
clear
|
||||
echo "I searched for an available domain and found ${MENU}>>> $DOMAIN <<<"
|
||||
echo "I searched for an available domain and found >>> $DOMAIN <<<"
|
||||
read -p "Do you wish to use it (y/n)?" yn
|
||||
case $yn in
|
||||
[Yy]* ) echo "Please log in with domain admin to $DOMAIN to connect";;
|
||||
@ -897,6 +898,7 @@ if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi_auth_yum
|
||||
exit
|
||||
}
|
||||
|
||||
############################### Raspberry Pi ###################################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user