small update

This commit is contained in:
Pierre Gode 2019-04-29 13:47:52 +02:00
parent cca8f86b26
commit db2d3dbe05

View File

@ -1454,12 +1454,13 @@ exit
fi fi
exit exit
} }
############################## Chech User ######################################3
checkuser(){ checkuser(){
clear clear
export HOSTNAME export HOSTNAME
myhost=$( hostname | cut -d '.' -f1 ) myhost=$( hostname | cut -d '.' -f1 )
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}' | tr "[:upper:]" "[:lower:]") DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}' | tr "[:upper:]" "[:lower:]")
if [ -z $2 ] if [ -z "$2 $3" ]
then then
if [ -d /home/"$DOMAIN" ] if [ -d /home/"$DOMAIN" ]
then then