Commit f557447d authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add a batch mode so that the elists and exports are not updated for

every new user during a elabinelab setup. Save it all for the end.
parent 15ce9d4f
......@@ -104,7 +104,7 @@ while (my ($uid,$admin) = $users_result->fetchrow_array()) {
next
if ($uid eq "elabman");
mysystem("$TB/sbin/tbacct add $uid");
mysystem("$TB/sbin/tbacct -b add $uid");
if ($admin) {
# Add admin users to group wheel for convenience.
DBQueryFatal("replace into unixgroup_membership ".
......@@ -138,6 +138,13 @@ while (my ($uid,$admin) = $users_result->fetchrow_array()) {
mysystem("$TB/sbin/setgroups $uid");
}
#
# Do the exports setup and the genelists all at once now that all the above
# stuff happened.
#
mysystem("$TB/sbin/genelists -a");
mysystem("$TB/sbin/exports_setup");
#
# Run a command string.
#
......
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