mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
small update
This commit is contained in:
parent
db2d3dbe05
commit
eeda9bd88d
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user