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
e3906db1
Commit
e3906db1
authored
Sep 25, 2008
by
Leigh B. Stoller
Browse files
Minor change to previous revsion.
parent
f528729e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/common/config/rc.accounts
View file @
e3906db1
...
...
@@ -389,14 +389,6 @@ sub doboot()
print
"
Adding:
$login
/
$uid
/
$gid
/
$root
/
$name
/
$hdir
/
$glist
\n
";
push
(
@addedUsers
,
$login
);
#
# Force doupdate below if the home directory does not exist.
# Might be a local node that does not mount /user from ops.
# Or a remote node.
#
$doupdate
=
1
if
(
!
-
e
$hdir
);
if
(
$doit
&&
os_useradd
(
$login
,
$uid
,
$gid
,
$pswd
,
"
$glist
",
$hdir
,
$name
,
$root
,
$shell
))
{
...
...
@@ -412,7 +404,13 @@ sub doboot()
chown
(
$uid
,
$gid
,
$hdir
)
if
(
$doit
);
}
#
# Might be a local node that does not mount /user from ops.
# Or a remote node.
#
$doupdate
=
1
if
(
!
-
e
"
$hdir
/.ssh
");
# Add to DB only if successful.
$PWDDB
{
$login
}
=
"
$uid
:
$serial
";
}
...
...
Write
Preview
Markdown
is supported
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