From bb089c4c60dfc6a57ddd0e6fdad3f0334d30ba21 Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" Date: Tue, 17 May 2005 13:33:26 +0000 Subject: [PATCH] Oops, forgot to commit a tiny change for the automated first project and user stuff. --- utils/firstuser.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/utils/firstuser.in b/utils/firstuser.in index a9c24577d..2d6539d61 100755 --- a/utils/firstuser.in +++ b/utils/firstuser.in @@ -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"; -- GitLab