Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
13e6c22e
Commit
13e6c22e
authored
Aug 31, 2011
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence email for non-local projects to avoid admin panic.
parent
47fc101f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
account/newproj.in
account/newproj.in
+2
-1
tbsetup/mkproj.in
tbsetup/mkproj.in
+2
-0
No files found.
account/newproj.in
View file @
13e6c22e
...
...
@@ -345,7 +345,8 @@ TBGetSiteVar("general/firstinit/state", \$firstinitstate);
#
# Send the email notification.
#
$newproj
->
SendNewProjectEmail
(
$firstinitstate
eq
"
createproject
");
$newproj
->
SendNewProjectEmail
(
$firstinitstate
eq
"
createproject
")
if
(
!
$nonlocal
);
# Unlink this here, so that the newuser file is left behind in case of error.
# We can then create the user by hand from the xmlfile, if desired.
...
...
tbsetup/mkproj.in
View file @
13e6c22e
...
...
@@ -51,6 +51,7 @@ my $CHOWN = "/usr/sbin/chown";
my
$GRANTTYPE
=
"
$TB
/sbin/grantnodetype -d
";
my
$UPDATEPERMS
=
"
$TB
/sbin/update_permissions
";
my
$ELABINELAB
=
@ELABINELAB@
;
my
$MAINSITE
=
@TBMAINSITE@
;
my
$WIKISUPPORT
=
@WIKISUPPORT@
;
my
$BUGDBSUPPORT
=
@BUGDBSUPPORT@
;
my
$OPSDBSUPPORT
=
@OPSDBSUPPORT@
;
...
...
@@ -243,6 +244,7 @@ else {
$leader_uid
=
$leader
->
uid
();
$isnonlocal
=
$target_project
->
IsNonLocal
();
$wasactive
=
(
$leader
->
status
()
eq
USERSTATUS_ACTIVE
()
?
1
:
0
);
$silent
=
1
if
(
$isnonlocal
&&
!
$MAINSITE
);
# Approve the project; we are committed to the leader.
$target_project
->
SetApproved
(
1
)
==
0
or
...
...
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