Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7856f2f7
Commit
7856f2f7
authored
Nov 16, 2015
by
Mike Hibler
Browse files
Use .profile rather than .cshrc as an indication of a populated directory.
parent
13d74b43
Changes
2
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/freebsd/liblocsetup.pm
View file @
7856f2f7
...
...
@@ -459,7 +459,7 @@ sub os_useradd($$$$$$$$$)
# Locally, if directory exists and is populated, skip -m
# cause FreeBSD copies files in anyway!
$args
.=
"
-m
"
if
(
!
-
d
$homedir
||
!
-
e
"
$homedir
/.
cshrc
");
if
(
!
-
d
$homedir
||
!
-
e
"
$homedir
/.
profile
");
}
else
{
# populate on remote nodes. At some point will tar files over.
...
...
clientside/tmcc/linux/liblocsetup.pm
View file @
7856f2f7
...
...
@@ -1111,7 +1111,7 @@ sub os_useradd_real($$$$$$$$$)
# Locally, if directory exists and is populated, skip -m
# and make sure no attempt is made to create.
if
(
!
-
d
$homedir
||
!
-
e
"
$homedir
/.
cshrc
")
{
if
(
!
-
d
$homedir
||
!
-
e
"
$homedir
/.
profile
")
{
$args
.=
"
-m
";
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment