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
bb089c4c
Commit
bb089c4c
authored
May 17, 2005
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops, forgot to commit a tiny change for the automated first project
and user stuff.
parent
ae40e6af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
utils/firstuser.in
utils/firstuser.in
+10
-1
No files found.
utils/firstuser.in
View file @
bb089c4c
...
...
@@ -14,7 +14,8 @@ use Getopt::Std;
use
lib
'
@prefix@/lib
';
use
libdb
;
my
$tbadmin
=
'
@TBADMINGROUP@
';
my
$tbadmin
=
'
@TBADMINGROUP@
';
my
$ELABINELAB
=
@ELABINELAB@
;
my
$wap
=
'
@prefix@/sbin/withadminprivs
';
my
$mkproj
=
'
@prefix@/sbin/mkproj
';
...
...
@@ -153,6 +154,14 @@ system "$wap $mkgroup $protoproj $protoproj";
print
"
Running mkacct...
\n
";
system
"
$wap
$mkacct
$protouser
";
#
# Okay, if not ELABINELAB, then set the firstinitstate so that the web
# interface will take the user through his first project setup.
#
if
(
!
$ELABINELAB
)
{
TBSetSiteVar
("
general/firstinit/state
",
"
createproject
");
}
print
"
User created. Once the web page is up, you should be able to log in
\n
";
print
"
as '
$protouser
' with the password you just entered. Refer to
\n
";
print
"
setup-db.txt for instructions on creating a 'real' user account for
\n
";
...
...
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