Commit 7856f2f7 authored by Mike Hibler's avatar Mike Hibler

Use .profile rather than .cshrc as an indication of a populated directory.

parent 13d74b43
...@@ -459,7 +459,7 @@ sub os_useradd($$$$$$$$$) ...@@ -459,7 +459,7 @@ sub os_useradd($$$$$$$$$)
# Locally, if directory exists and is populated, skip -m # Locally, if directory exists and is populated, skip -m
# cause FreeBSD copies files in anyway! # cause FreeBSD copies files in anyway!
$args .= "-m " $args .= "-m "
if (! -d $homedir || ! -e "$homedir/.cshrc"); if (! -d $homedir || ! -e "$homedir/.profile");
} }
else { else {
# populate on remote nodes. At some point will tar files over. # populate on remote nodes. At some point will tar files over.
......
...@@ -1111,7 +1111,7 @@ sub os_useradd_real($$$$$$$$$) ...@@ -1111,7 +1111,7 @@ sub os_useradd_real($$$$$$$$$)
# Locally, if directory exists and is populated, skip -m # Locally, if directory exists and is populated, skip -m
# and make sure no attempt is made to create. # and make sure no attempt is made to create.
if (! -d $homedir || ! -e "$homedir/.cshrc") { if (! -d $homedir || ! -e "$homedir/.profile") {
$args .= "-m "; $args .= "-m ";
} }
else { else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment