small update

This commit is contained in:
Pierre Gode 2019-04-29 13:48:27 +02:00
parent db2d3dbe05
commit eeda9bd88d

View File

@ -1460,7 +1460,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 "$2 $3" ] if [ -z "$2" ]
then then
if [ -d /home/"$DOMAIN" ] if [ -d /home/"$DOMAIN" ]
then then