Skip to content
GitLab
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
6614fe87
Commit
6614fe87
authored
Oct 07, 2003
by
Robert Ricci
Browse files
For consistency, for default groups, rather than not making a group
directory, symlink in /proj/<pid> .
parent
8a5fcebe
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/mkgroup.in
View file @
6614fe87
...
...
@@ -215,10 +215,19 @@ foreach my $tipserver ( TBTipServers() ) {
}
#
# Create the group directory if it does not already exist
, but not for
# th
e default group of
the proj
ect.
# Create the group directory if it does not already exist
- for default groups,
# th
ough, we just link to
the
/
proj
drectory
#
if
(
$pid
ne
$gid
)
{
if
(
$pid
eq
$gid
)
{
if
(
!
-
e
$groupdir
)
{
print
"
Linking default group directory:
$groupdir
.
\n
";
my
$projdir
=
"
$PROJROOT
/
$pid
";
if
(
system
("
ln -s
$projdir
$groupdir
"))
{
fatal
("
Could not link group directory
$projdir
to
$groupdir
");
}
}
}
else
{
if
(
!
-
e
$groupdir
)
{
print
"
Creating group directory:
$groupdir
.
\n
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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