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
bb089c4c
Commit
bb089c4c
authored
May 17, 2005
by
Leigh B. Stoller
Browse files
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
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
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