Commit bb089c4c authored by Leigh B. Stoller's avatar Leigh B. Stoller

Oops, forgot to commit a tiny change for the automated first project

and user stuff.
parent ae40e6af
......@@ -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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment