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
fdd4882f53
commit
5f56c36d87
@ -1531,7 +1531,22 @@ while [ opt != '' ]
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
################# Precheck for YUM based OS #################
|
||||||
|
PRECHECK_FN(){
|
||||||
|
## Precheck sends yum based OS to an own menu ##
|
||||||
|
TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
|
||||||
|
if [ "$TheOS" = "Fedora" ]
|
||||||
|
then
|
||||||
|
YUM_MENU
|
||||||
|
else
|
||||||
|
if [ "$TheOS" = "CentOS" ]
|
||||||
|
then
|
||||||
|
YUM_MENU
|
||||||
|
else
|
||||||
|
MENU_FN
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
############################## Flags ###############################
|
############################## Flags ###############################
|
||||||
clear
|
clear
|
||||||
#Versi0n=$( echo "7" )
|
#Versi0n=$( echo "7" )
|
||||||
@ -1712,19 +1727,4 @@ fi_auth
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
PRECHECK_FN(){
|
|
||||||
## Precheck sends yum based OS to an own menu ##
|
|
||||||
TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
|
|
||||||
if [ "$TheOS" = "Fedora" ]
|
|
||||||
then
|
|
||||||
YUM_MENU
|
|
||||||
else
|
|
||||||
if [ "$TheOS" = "CentOS" ]
|
|
||||||
then
|
|
||||||
YUM_MENU
|
|
||||||
else
|
|
||||||
MENU_FN
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
PRECHECK_FN
|
PRECHECK_FN
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user