small update

This commit is contained in:
Pierre Gode 2019-04-29 13:42:59 +02:00
parent c4624cad92
commit cca8f86b26

View File

@ -1459,7 +1459,7 @@ 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 $1 ] if [ -z $2 ]
then then
if [ -d /home/"$DOMAIN" ] if [ -d /home/"$DOMAIN" ]
then then
@ -1475,7 +1475,7 @@ read -r user
id "$user" | grep "$myhost" id "$user" | grep "$myhost"
fi fi
else else
id "$1" id "$2"
fi fi
exit exit
} }