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
a78f4e66
Commit
a78f4e66
authored
Feb 24, 2006
by
Leigh B. Stoller
Browse files
Do not use mailman lists for subgroups when ELABINELAB=1
parent
15b92411
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/genelists.in
View file @
a78f4e66
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
5
University of Utah and the Flux Group.
# Copyright (c) 2000-200
6
University of Utah and the Flux Group.
# All rights reserved.
#
use
Fcntl
'
:flock
';
...
...
@@ -33,12 +33,13 @@ sub ProjectLeaders();
sub
ProjectLists
($$);
sub
genelist
($$$$);
my
$optlist
=
"
anu:p:tdm
";
my
$optlist
=
"
anu:p:tdm
f
";
my
$debug
=
0
;
my
$all
=
0
;
my
$update
=
0
;
my
$activity
=
0
;
my
$impotent
=
0
;
my
$force
=
0
;
my
$pid
;
my
$user
;
...
...
@@ -52,6 +53,7 @@ my $TBALL = "@TBUSERSARCHIVE@";
my
$PROJROOT
=
"
/proj
";
my
$GRPROOT
=
"
/groups
";
my
$ELISTS
=
"
$TB
/lists
";
my
$ELABINELAB
=
@ELABINELAB@
;
my
$MAILMANSUPPORT
=
@MAILMANSUPPORT@
;
my
$MMPROG
=
"
$TB
/sbin/setmmlistmembers
";
...
...
@@ -440,7 +442,8 @@ sub ProjectLists($$)
genelist
(
$query_result
,
undef
,
"
$pid
-users
",
1
);
}
else
{
genelist
(
$query_result
,
undef
,
"
$pid
-
$gid
-users
",
1
);
genelist
(
$query_result
,
undef
,
"
$pid
-
$gid
-users
",
(
$ELABINELAB
?
0
:
1
));
}
}
}
...
...
@@ -497,8 +500,10 @@ sub genelist($$$$)
system
("
cmp -s
$tempfile
$ELISTS
/
$listname
")
==
0
)
{
print
"
$listname
has not changed. Skipping.
\n
"
if
(
$debug
);
unlink
("
$tempfile
");
return
;
if
(
!
$force
)
{
unlink
("
$tempfile
");
return
;
}
}
system
("
/bin/cp -pf
$tempfile
$ELISTS
/
$listname
")
==
0
||
...
...
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