Commit 3a845e22 authored by Leigh B. Stoller's avatar Leigh B. Stoller

ElabinElab related bug fix; do not try to setgroups if the group has

not been created yet. This happens during the bootstrap of the initial
groups. Not a big deal, it all works out in the end (the groups get
set later in a subsequent call to setgroups).
parent b761e4f6
......@@ -39,6 +39,7 @@ my $TBLOGS = "@TBLOGSEMAIL@";
my $CONTROL = "@USERNODE@";
my $BOSSNODE= "@BOSSNODE@";
my $ADMINGRP= "@TBADMINGROUP@";
my $ELABINELAB = @ELABINELAB@;
my $WIKISUPPORT = @WIKISUPPORT@;
my $SETWIKIGROUPS = "$TB/sbin/setwikigroups";
......@@ -241,7 +242,12 @@ foreach my $uid (@userlist) {
}
else {
while (@db_row = $query_result->fetchrow_array() ) {
push(@groupnames, $db_row[0]);
my $groupname = $db_row[0];
next
if ($ELABINELAB && !getgrnam($groupname));
push(@groupnames, $groupname);
}
}
......
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